summaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/lex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp
index c246bbc0..419a04d5 100644
--- a/src/parse/lex.cpp
+++ b/src/parse/lex.cpp
@@ -536,7 +536,7 @@ double Lexer::parseFloat(uint64_t whole)
const int MAX_LEN = 63;
const int MAX_SIG = MAX_LEN - 1 - 4;
char buf[MAX_LEN+1];
- int ofs = snprintf(buf, MAX_LEN+1, "%llu", (unsigned long long)whole);
+ int ofs = snprintf(buf, MAX_LEN+1, "%llu.", (unsigned long long)whole);
char ch = this->getc_num();
#define PUTC(ch) do { if( ofs < MAX_SIG ) { buf[ofs] = ch; ofs ++; } else { throw ParseError::Generic("Oversized float"); } } while(0)