aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/src/gmock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'googlemock/src/gmock.cc')
-rw-r--r--googlemock/src/gmock.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/googlemock/src/gmock.cc b/googlemock/src/gmock.cc
index 3c370510..2308168b 100644
--- a/googlemock/src/gmock.cc
+++ b/googlemock/src/gmock.cc
@@ -136,8 +136,8 @@ static bool ParseGoogleMockIntFlag(const char* str, const char* flag,
if (value_str == NULL) return false;
// Sets *value to the value of the flag.
- *value = atoi(value_str);
- return true;
+ return ParseInt32(Message() << "The value of flag --" << flag,
+ value_str, value);
}
// The internal implementation of InitGoogleMock().