summaryrefslogtreecommitdiff
path: root/src/jit/inline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jit/inline.cpp')
-rw-r--r--src/jit/inline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/inline.cpp b/src/jit/inline.cpp
index 679ff41240..2bff93259f 100644
--- a/src/jit/inline.cpp
+++ b/src/jit/inline.cpp
@@ -1545,7 +1545,7 @@ void InlineStrategy::DumpXml(FILE* file, unsigned indent)
strncpy(buf, methodName, sizeof(buf));
buf[sizeof(buf) - 1] = 0;
- for (int i = 0; i < sizeof(buf); i++)
+ for (int i = 0; i < _countof(buf); i++)
{
switch (buf[i])
{