aboutsummaryrefslogtreecommitdiffstats
path: root/src/byte_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/byte_source.h')
-rw-r--r--src/byte_source.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/byte_source.h b/src/byte_source.h
index 3eafe4b8..02aab663 100644
--- a/src/byte_source.h
+++ b/src/byte_source.h
@@ -69,12 +69,10 @@ serd_byte_source_advance(SerdByteSource* source)
{
SerdStatus st = SERD_SUCCESS;
- switch (serd_byte_source_peek(source)) {
- case '\n':
+ if (serd_byte_source_peek(source) == '\n') {
++source->cur.line;
source->cur.col = 0;
- break;
- default:
+ } else {
++source->cur.col;
}