diff options
author | Chad Austin <chad@imvu.com> | 2013-03-08 16:20:45 -0800 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:25:41 +0300 |
commit | 40976b0286d7b647777adc037976925c4c1505fd (patch) | |
tree | 333ab1d1d915911595731fb097302ebded79f153 /src | |
parent | 76bd2d5cc47468eaae1d9149d997c63b72aa18d3 (diff) |
tiny refactoring
Diffstat (limited to 'src')
-rwxr-xr-x | src/embind/embind.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index 5aae8669..82b9c5d4 100755 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -607,13 +607,12 @@ RegisteredPointer.prototype.fromWireTypeAutoDowncast = function(ptr) { // ptr is } var toType = this.getDynamicDowncastType(ptr); if (toType) { - var fromType = this.pointeeType; if (this.isSmartPointer) { handle = toType.smartPointerType.fromWireType(ptr); } else { handle = toType.fromWireType(ptr); } - handle.$$.ptr = staticPointerCast(handle.$$.ptr, fromType.rawType, toType.rawType); + handle.$$.ptr = staticPointerCast(handle.$$.ptr, this.pointeeType.rawType, toType.rawType); } else { handle = this.fromWireType(ptr); } |