diff options
Diffstat (limited to 'src/js/fromjs.nim')
-rw-r--r-- | src/js/fromjs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/fromjs.nim b/src/js/fromjs.nim index 4cdc18d1..527b6221 100644 --- a/src/js/fromjs.nim +++ b/src/js/fromjs.nim @@ -108,7 +108,7 @@ func fromJSInt[T: SomeInteger](ctx: JSContext; val: JSValue): var ret: uint32 if JS_ToUint32(ctx, addr ret, val) < 0: return err() - return ok(cast[uint64](ret)) + return ok(uint64(ret)) proc fromJSFloat64(ctx: JSContext; val: JSValue): JSResult[float64] = var f64: float64 |