ruby / spec

The Ruby Spec Suite aka ruby/spec
MIT License
588 stars 384 forks source link

Don't assume that Qfalse is 0 in rb_special_const_p #1139

Closed peterzhu2118 closed 4 months ago

peterzhu2118 commented 4 months ago

rb_special_const_p returns a VALUE (Qtrue or Qfalse), so can directly return the value and we shouldn't assume that Qfalse is 0.