mirror of
https://github.com/Xahau/xahaud.git
synced 2026-07-25 16:10:15 +00:00
Fix JS float_int return JS instead of JSXFL
This commit is contained in:
@@ -7404,7 +7404,9 @@ DEFINE_JS_FUNCTION(
|
||||
!fits_u32(dp, ab))
|
||||
returnJS(INVALID_ARGUMENT);
|
||||
|
||||
returnJSXFL(__float_int(hookCtx, applyCtx, j, *f1, (uint32_t)(*dp), (uint32_t)(*ab)));
|
||||
// Note! This is the only (?) place where a float/... method has to return `returnJS` instead
|
||||
// of `returnJSXFL` as this is where we cast to JS usable Number
|
||||
returnJS(__float_int(hookCtx, applyCtx, j, *f1, (uint32_t)(*dp), (uint32_t)(*ab)));
|
||||
|
||||
JS_HOOK_TEARDOWN();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user