[ruby/psych] Do not depend on the evaluation order of C arguments
The evaluation order of C arguments is unspecified. RSTRING_LEN(value) would fail if the conversion to a String by StringValuePtr(value) is not done yet.
RSTRING_LEN(value)
StringValuePtr(value)
Coverity Scan found this issue.
https://github.com/ruby/psych/commit/d1e6bf323a
[ruby/psych] Do not depend on the evaluation order of C arguments
The evaluation order of C arguments is unspecified.
RSTRING_LEN(value)would fail if the conversion to a String byStringValuePtr(value)is not done yet.Coverity Scan found this issue.
https://github.com/ruby/psych/commit/d1e6bf323a