summaryrefslogtreecommitdiff
path: root/xs_json.h
diff options
context:
space:
mode:
authorGravatar default2023-08-09 15:54:36 +0200
committerGravatar default2023-08-09 15:54:36 +0200
commit912cfb5aaa915829efe92cc34ad7ad888e93c14a (patch)
tree350744e7907f318c8dac42dc72cc9940a2f9ed74 /xs_json.h
parentRevert "Implemented hide_followers_only." (diff)
downloadpenes-snac2-912cfb5aaa915829efe92cc34ad7ad888e93c14a.tar.gz
penes-snac2-912cfb5aaa915829efe92cc34ad7ad888e93c14a.tar.xz
penes-snac2-912cfb5aaa915829efe92cc34ad7ad888e93c14a.zip
Backport from xs.
Diffstat (limited to 'xs_json.h')
-rw-r--r--xs_json.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/xs_json.h b/xs_json.h
index b8b6b3a..368e5d6 100644
--- a/xs_json.h
+++ b/xs_json.h
@@ -189,8 +189,7 @@ typedef enum {
189 JS_COLON, 189 JS_COLON,
190 JS_VALUE, 190 JS_VALUE,
191 JS_STRING, 191 JS_STRING,
192 JS_INTEGER, 192 JS_NUMBER,
193 JS_REAL,
194 JS_TRUE, 193 JS_TRUE,
195 JS_FALSE, 194 JS_FALSE,
196 JS_NULL, 195 JS_NULL,
@@ -287,7 +286,7 @@ static xs_val *_xs_json_load_lexer(FILE *f, js_type *t)
287 286
288 ungetc(c, f); 287 ungetc(c, f);
289 if (fscanf(f, "%lf", &d) == 1) { 288 if (fscanf(f, "%lf", &d) == 1) {
290 *t = JS_REAL; 289 *t = JS_NUMBER;
291 v = xs_number_new(d); 290 v = xs_number_new(d);
292 } 291 }
293 } 292 }