summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vespalib/src/vespa/vespalib/stllike/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/stllike/string.h b/vespalib/src/vespa/vespalib/stllike/string.h
index 121a243d403..d85a01b8d52 100644
--- a/vespalib/src/vespa/vespalib/stllike/string.h
+++ b/vespalib/src/vespa/vespalib/stllike/string.h
@@ -530,7 +530,7 @@ public:
}
size_t count_allocated_memory() const {
- return sizeof(small_string) + isAllocated() ? _bufferSize : 0;
+ return sizeof(small_string) + (isAllocated() ? _bufferSize : 0);
}
size_t count_used_memory() const {
return sizeof(small_string) - StackSize + size();