Index: core/fxcrt/cfx_string_data_template.h |
diff --git a/core/fxcrt/cfx_string_data_template.h b/core/fxcrt/cfx_string_data_template.h |
index affd61001198f13f83ccb8a582b3d8cb5ac1d726..c3e090fef0c8431aa54467c77ae1bc996521db9a 100644 |
--- a/core/fxcrt/cfx_string_data_template.h |
+++ b/core/fxcrt/cfx_string_data_template.h |
@@ -30,7 +30,8 @@ class CFX_StringDataTemplate { |
// where we can save a re-alloc when adding a few characters to a string |
// by using this otherwise wasted space. |
nSize += 7; |
- int totalSize = nSize.ValueOrDie() & ~7; |
+ nSize &= ~7; |
+ int totalSize = nSize.ValueOrDie(); |
int usableLen = (totalSize - overhead) / sizeof(CharType); |
ASSERT(usableLen >= nLen); |