Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix optional/gc_specs.rb and use LL2NUM instead of LONG2NU
INT64_MAX might be long long int and there might be overflow with LONG2NU, e.g. in windows job: ``` gc_spec.c: In function 'Init_gc_spec': gc_spec.c:108:58: warning: overflow in conversion from 'long long int' to 'long int' changes value from '9223372036854775807' to '-1' [-Woverflow] 108 | registered_before_rb_global_variable_bignum = LONG2NUM(INT64_MAX); | ^~~~~~~~~ gc_spec.c:113:57: warning: overflow in conversion from 'long long int' to 'long int' changes value from '9223372036854775807' to '-1' [-Woverflow] 113 | registered_after_rb_global_variable_bignum = LONG2NUM(INT64_MAX); | ^~~~~~~~~ ```
- Loading branch information