Skip to content

Commit

Permalink
GH-6: allocate jpr_root using the correct integral type.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan authored and mnunberg committed Feb 7, 2014
1 parent 9dadab6 commit ee2f09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit ee2f09b

Please sign in to comment.