diff options
-rwxr-xr-x | src/embind/embind.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index 1f8a6654..e02b9e01 100755 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -439,7 +439,7 @@ RegisteredPointer.prototype.toWireTypeAutoUpcast = function(destructors, handle) } else { fromRawType = handle.pointeeType.rawType; } - if (fromRawType === this.pointeeType.rawType) { + if (fromRawType == this.pointeeType.rawType) { return this.isSmartPointer ? handle.smartPointer : handle.ptr; } var ptr = ___staticPointerCast(handle.ptr, fromRawType, this.pointeeType.rawType); |