aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c
index 3a4ef452..6d7badbf 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -908,7 +908,7 @@ read_literal(SerdReader reader, Node* dest)
Ref str = 0;
Node datatype = INTERNAL_NODE_NULL;
const uint8_t c = peek_byte(reader);
- if (c == '-' || c == '+' || is_digit(c)) {
+ if (c == '-' || c == '+' || c == '.' || is_digit(c)) {
return read_number(reader, dest);
} else if (c == '\"') {
str = read_quotedString(reader);