diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/reader.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/reader.c b/src/reader.c index 79b61385..a342a4d2 100644 --- a/src/reader.c +++ b/src/reader.c @@ -869,6 +869,11 @@ read_number(SerdReader reader, Node* dest) if (c == 'e' || c == 'E') { // double push_byte(reader, str, eat_byte(reader, c)); + switch ((c = peek_byte(reader))) { + case '+': case '-': + push_byte(reader, str, eat_byte(reader, c)); + default: break; + } read_0_9(reader, str, true); datatype = push_string(reader, XSD_DOUBLE, strlen(XSD_DOUBLE) + 1); } else if (has_decimal) { |