diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-07-19 10:56:04 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-07-19 11:45:31 -0400 |
| commit | e801fa5ce8870c7a1b6551721fa1dbf96fa35655 (patch) | |
| tree | 730d04f086d9d7eb8a23644d064fdbf29e8360ed | |
| parent | b226c3407ec94204237943c4e39bb682b5a392bc (diff) | |
[PRISM] Fix compiler warning for min_tmp_array_size
prism_compile.c:5770:40: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
5770 | if (tmp_array_size >= min_tmp_array_size) {
| ^~
| -rw-r--r-- | prism_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prism_compile.c b/prism_compile.c index de3a294933..50a8c87e7d 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -5676,7 +5676,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret, // own arrays, followed by a newarray, and then continually // concat the arrays with the SplatNode nodes. const int max_new_array_size = 0x100; - const int min_tmp_array_size = 0x40; + const unsigned int min_tmp_array_size = 0x40; int new_array_size = 0; bool first_chunk = true; |
