summaryrefslogtreecommitdiff
path: root/src/support/debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/debug.cpp')
-rw-r--r--src/support/debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/debug.cpp b/src/support/debug.cpp
index da006e9c0..ab5401bfc 100644
--- a/src/support/debug.cpp
+++ b/src/support/debug.cpp
@@ -45,7 +45,7 @@ void wasm::setDebugEnabled(const char* types) {
if (type_end == nullptr) {
type_end = types + end;
}
- size_t type_size = type_end - types + start;
+ size_t type_size = type_end - (types + start);
std::string type(types + start, type_size);
debugTypesEnabled.insert(type);
start += type_size + 1;