aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylanki <jjylanki@imvu.com>2013-03-28 11:06:48 +0200
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:26:54 +0300
commitda222ce8d8529d92d4256369bd910e4d5929a008 (patch)
tree2d78142542f0c5bf7b50b53712966bf2ef840910
parentc424c0ac7f08fa4ce0e2eac1db1f5c53733bbb14 (diff)
Fix equality testing in previous commit
-rwxr-xr-xsrc/embind/embind.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index f52e80ec..e0abe6f1 100755
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -225,7 +225,7 @@ function __embind_register_bool(rawType, name, trueValue, falseValue) {
// [minRange, maxRange], inclusive.
function __embind_register_integer(primitiveType, name, minRange, maxRange) {
name = Pointer_stringify(name);
- if (maxRange == -1) { // LLVM doesn't have signed and unsigned 32-bit types, so u32 literals come out as 'i32 -1'. Always treat those as max u32.
+ if (maxRange === -1) { // LLVM doesn't have signed and unsigned 32-bit types, so u32 literals come out as 'i32 -1'. Always treat those as max u32.
maxRange = 4294967295;
}
registerType(primitiveType, {