aboutsummaryrefslogtreecommitdiff
path: root/system/lib/embind
diff options
context:
space:
mode:
authorBill Welden <bwelden@imvu.com>2013-01-02 12:57:31 -0800
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:22:49 +0300
commiteac098fc2418d7c3c543daebdff8fd6c341312ce (patch)
tree70801f558a1f1628cb5af9f093b29e731b4fd8ce /system/lib/embind
parentd069ed414249db41a4dfa91061e8979d6c9dccca (diff)
Major re-factoring for auto downcasting
Diffstat (limited to 'system/lib/embind')
-rwxr-xr-xsystem/lib/embind/bind.cpp4
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;