mirror of
https://github.com/ccxvii/mujs.git
synced 2026-02-06 01:41:37 +08:00
Fix typo in ToBoolean.
This commit is contained in:
@@ -106,7 +106,7 @@ int jsV_toboolean(js_State *J, const js_Value *v)
|
||||
case JS_TBOOLEAN: return v->u.boolean;
|
||||
case JS_TNUMBER: return v->u.number != 0 && !isnan(v->u.number);
|
||||
case JS_TSTRING: return v->u.string[0] != 0;
|
||||
case JS_TOBJECT: return 0;
|
||||
case JS_TOBJECT: return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user