diff options
author | Bill Welden <bwelden@imvu.com> | 2013-01-02 12:57:31 -0800 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:22:49 +0300 |
commit | eac098fc2418d7c3c543daebdff8fd6c341312ce (patch) | |
tree | 70801f558a1f1628cb5af9f093b29e731b4fd8ce /system | |
parent | d069ed414249db41a4dfa91061e8979d6c9dccca (diff) |
Major re-factoring for auto downcasting
Diffstat (limited to 'system')
-rwxr-xr-x | system/lib/embind/bind.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/lib/embind/bind.cpp b/system/lib/embind/bind.cpp index bc1e09ee..c69c4399 100755 --- a/system/lib/embind/bind.cpp +++ b/system/lib/embind/bind.cpp @@ -161,12 +161,12 @@ namespace emscripten { offset = __cxxabiv1::__pathOffset(paths[i]);
} else {
if (offset != __cxxabiv1::__pathOffset(paths[i])) {
- return (void *)-2; // ambiguous cast -- throw instead?
+ return (void *)-2;
}
}
}
if (offset < 0) {
- return (void *)-1; // types are not related -- throw instead?
+ return (void *)-1;
}
if (p == 0) {
return (void *)0;
|