Index: test/cctest/test-cpu-profiler.cc |
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
index a8cbdd505cfe0626de7669c6d952a5cccd8dca52..229dff08e90467563bbd9ed29d6c154aa8916679 100644 |
--- a/test/cctest/test-cpu-profiler.cc |
+++ b/test/cctest/test-cpu-profiler.cc |
@@ -56,8 +56,8 @@ static v8::Local<v8::Function> GetFunction(v8::Context* env, const char* name) { |
} |
-static int offset(const char* src, const char* substring) { |
- return static_cast<int>(strstr(src, substring) - src); |
+static unsigned int offset(const char* src, const char* substring) { |
alph
2015/03/30 12:31:21
could you please add a check that strstr is not nu
loislo
2015/03/30 13:04:22
done
|
+ return static_cast<unsigned int>(strstr(src, substring) - src); |
} |