Skip to content

Commit

Permalink
Using int64 when pass int value from godot to js
Browse files Browse the repository at this point in the history
  • Loading branch information
Geequlim committed Jul 11, 2020
1 parent ed35663 commit f89d9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickjs/quickjs_binder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ JSValue QuickJSBinder::variant_to_var(JSContext *ctx, const Variant p_var) {
case Variant::BOOL:
return ((bool)p_var) ? JS_TRUE : JS_FALSE;
case Variant::INT:
return JS_NewInt32(ctx, int32_t(p_var));
return JS_NewInt64(ctx, int64_t(p_var));
case Variant::REAL:
return JS_NewFloat64(ctx, (double)(p_var));
case Variant::NODE_PATH:
Expand Down

0 comments on commit f89d9f4

Please sign in to comment.