summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2024-07-19 10:55:02 -0400
committerPeter Zhu <peter@peterzhu.ca>2024-07-19 11:45:31 -0400
commitb226c3407ec94204237943c4e39bb682b5a392bc (patch)
tree45f5871861c445c230cde4f23df5f622faafa0a7
parent49cf042cd297cc6097065fb4d98879755ed0cec0 (diff)
[PRISM] Fix compiler warning for min_tmp_hash_length
prism_compile.c:1406:27: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 1406 | if (count >= min_tmp_hash_length) { | ^~
-rw-r--r--prism_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prism_compile.c b/prism_compile.c
index 91af03b149..de3a294933 100644
--- a/prism_compile.c
+++ b/prism_compile.c
@@ -1360,7 +1360,7 @@ pm_compile_hash_elements(rb_iseq_t *iseq, const pm_node_t *node, const pm_node_l
// by newhash or hash merge). Double splat nodes should be merged using the
// merge_kwd method call.
const int max_stack_length = 0x100;
- const int min_tmp_hash_length = 0x800;
+ const unsigned int min_tmp_hash_length = 0x800;
int stack_length = 0;
bool first_chunk = true;