summaryrefslogtreecommitdiffstats
path: root/src/jv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jv.c')
-rw-r--r--src/jv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jv.c b/src/jv.c
index 9784b22f..e1fb209f 100644
--- a/src/jv.c
+++ b/src/jv.c
@@ -612,6 +612,7 @@ static jv jvp_literal_number_new(const char * literal) {
n->refcnt = JV_REFCNT_INIT;
n->literal_data = NULL;
decContext *ctx = DEC_CONTEXT();
+ decContextClearStatus(ctx, DEC_Conversion_syntax);
decNumberFromString(&n->num_decimal, literal, ctx);
n->num_double = NAN;