You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
line 247 in quickjs.h:
#define JS_VALUE_IS_BOTH_INT(v1, v2) ((JS_VALUE_GET_TAG(v1) | JS_VALUE_GET_TAG(v2)) == 0)
It seems not right in JS_STRICT_NAN_BOXING mode, because JS_TAG_INT is 1, not 0.
It will not cause wrong results, but will cause slow operation.
It should be:
#define JS_VALUE_IS_BOTH_INT(v1, v2) ((JS_VALUE_GET_TAG(v1) | JS_VALUE_GET_TAG(v2)) == 1)
The text was updated successfully, but these errors were encountered:
line 247 in quickjs.h:
#define JS_VALUE_IS_BOTH_INT(v1, v2) ((JS_VALUE_GET_TAG(v1) | JS_VALUE_GET_TAG(v2)) == 0)
It seems not right in JS_STRICT_NAN_BOXING mode, because JS_TAG_INT is 1, not 0.
It will not cause wrong results, but will cause slow operation.
It should be:
#define JS_VALUE_IS_BOTH_INT(v1, v2) ((JS_VALUE_GET_TAG(v1) | JS_VALUE_GET_TAG(v2)) == 1)
The text was updated successfully, but these errors were encountered: