Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index 36b27e7f997c8a0fcaa391b7f81daa90d2cc7b0f..c79ab6a5eb0bdb0ccc28fd4ee841bdbcff687793 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -3881,11 +3881,11 @@ int GetTotalFramesInt(char *message) { |
} |
pos += strlen(prefix); |
char* pos_end = pos; |
- long res = strtol(pos, &pos_end, 10); |
+ int res = static_cast<int>(strtol(pos, &pos_end, 10)); |
if (pos_end == pos) { |
return -1; |
} |
- return static_cast<int>(res); |
+ return res; |
} |