From b226c3407ec94204237943c4e39bb682b5a392bc Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 19 Jul 2024 10:55:02 -0400 Subject: [PATCH] [PRISM] Fix compiler warning for min_tmp_hash_length MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) { | ^~ --- prism_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;