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 c0bceb9b..c9a6a4f6 100755 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -459,7 +459,7 @@ RegisteredPointer.prototype.getDynamicRawPointerType = function(ptr) { RegisteredPointer.prototype.getDynamicDowncastType = function(ptr) { var downcastType = null; var type = this.getDynamicRawPointerType(ptr); - if (type && type != this.pointeeType.rawType) { + if (type && type !== this.pointeeType.rawType) { var derivation = Module.__getDerivationPath(type, this.pointeeType.rawType); for (var i = 0; i < derivation.size(); i++) { downcastType = typeRegistry[derivation.at(i)]; |