Skip to content
This repository
Browse code

Fixed 64bit compilation errors.

  • Loading branch information...
commit b3a1e0b2a324b3edad05c59487effefe1aba5838 1 parent e2d0806
Jean-Charles BERTIN authored July 05, 2011
2  src/yajl_parser.c
@@ -33,7 +33,7 @@
33 33
 
34 34
  /* same semantics as strtol */
35 35
 long long
36  
-yajl_parse_integer(const unsigned char *number, unsigned int length)
  36
+yajl_parse_integer(const unsigned char *number, size_t length)
37 37
 {
38 38
     long long ret  = 0;
39 39
     long sign = 1;
2  src/yajl_parser.h
@@ -72,7 +72,7 @@ yajl_render_error_string(yajl_handle hand, const unsigned char * jsonText,
72 72
 /* A little built in integer parsing routine with the same semantics as strtol
73 73
  * that's unaffected by LOCALE. */
74 74
 long long
75  
-yajl_parse_integer(const unsigned char *number, unsigned int length);
  75
+yajl_parse_integer(const unsigned char *number, size_t length);
76 76
 
77 77
 
78 78
 #endif
4  src/yajl_tree.c
@@ -456,8 +456,8 @@ yajl_val yajl_tree_get(yajl_val n, const char ** path, yajl_type type)
456 456
 {
457 457
     if (!path) return NULL;
458 458
     while (n && *path) {
459  
-        unsigned int i;
460  
-        int len;
  459
+        size_t i;
  460
+        size_t len;
461 461
 
462 462
         if (n->type != yajl_t_object) return NULL;
463 463
         len = n->u.object.len;

0 notes on commit b3a1e0b

Please sign in to comment.
Something went wrong with that request. Please try again.