Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

GH-6: allocate jpr_root using the correct integral type.

  • Loading branch information...
commit ee2f09b5b60b5537e7504b8cc3b761e8d5a98bee 1 parent 9dadab6
jordan authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  jsonsl.c
View
2  jsonsl.c
@@ -844,7 +844,7 @@ void jsonsl_jpr_match_state_init(jsonsl_t jsn,
}
jsn->jprs = malloc(sizeof(jsonsl_jpr_t) * njprs);
jsn->jpr_count = njprs;
- jsn->jpr_root = calloc(1, sizeof(int) * njprs * jsn->levels_max);
+ jsn->jpr_root = calloc(1, sizeof(size_t) * njprs * jsn->levels_max);
memcpy(jsn->jprs, jprs, sizeof(jsonsl_jpr_t) * njprs);
/* Set the initial jump table values */
Please sign in to comment.
Something went wrong with that request. Please try again.