mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
wasm: corrected the isInt32() check to account for negative values.
FossilOrigin-Name: 7223f4bb588b6c759754ef26cbefbb172e767eaa80989b8f9ef104d4e8b9d856
This commit is contained in:
@ -18,7 +18,7 @@ fiddle_files = emscripten.css fiddle.html \
|
||||
fiddle_remote ?=
|
||||
ifeq (,$(fiddle_remote))
|
||||
ifneq (,$(wildcard /home/stephan))
|
||||
fiddle_remote = wh2:www/wh/sqlite3/.
|
||||
fiddle_remote = wh:www/wh/sqlite3/.
|
||||
else ifneq (,$(wildcard /home/drh))
|
||||
#fiddle_remote = if appropriate, add that user@host:/path here
|
||||
endif
|
||||
|
@ -120,10 +120,9 @@ Module.postRun.push(function(namespace/*the module object, the target for
|
||||
throw new Error(Array.prototype.join.call(arguments, ' '));
|
||||
};
|
||||
|
||||
/** Returns true if n is a 32-bit (signed) integer,
|
||||
else false. */
|
||||
/** Returns true if n is a 32-bit (signed) integer, else false. */
|
||||
const isInt32 = function(n){
|
||||
return (n===(n|0) && n<0xFFFFFFFF) ? true : undefined;
|
||||
return !!(n===(n|0) && n<=2147483647 && n>=-2147483648);
|
||||
};
|
||||
|
||||
/** Returns v if v appears to be a TypedArray, else false. */
|
||||
|
Reference in New Issue
Block a user