Changeset e8161ec
- Timestamp:
- 2012-12-01T12:13:44Z (12 years ago)
- Branches:
- master
- Children:
- 3ca001b
- Parents:
- 85cd12d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/json.c
r85cd12d re8161ec 43 43 #endif 44 44 45 #include <glib.h> 45 46 #include <stdlib.h> 46 47 #include <stdio.h> … … 287 288 string_length += 2; 288 289 else 289 { string [string_length ++] = 0xC0 | ((uc_b2 & 0xC0) >> 6) | ((uc_b1 & 0x 3) << 3);290 { string [string_length ++] = 0xC0 | ((uc_b2 & 0xC0) >> 6) | ((uc_b1 & 0x7) << 2); 290 291 string [string_length ++] = 0x80 | (uc_b2 & 0x3F); 291 292 } … … 483 484 484 485 if (top->type == json_double) 485 top->u.dbl = strtod (i, (json_char **) &i);486 top->u.dbl = g_ascii_strtod (i, (json_char **) &i); 486 487 else 487 top->u.integer = strtoll (i, (json_char **) &i, 10);488 top->u.integer = g_ascii_strtoll (i, (json_char **) &i, 10); 488 489 489 490 flags |= flag_next | flag_reproc;
Note: See TracChangeset
for help on using the changeset viewer.