Index: src/flags.cc |
diff --git a/src/flags.cc b/src/flags.cc |
index 7386238090237386154987c7c3c86a89d48d7b68..88f06a301c626cd9d0104e5dc1278f5c52816d80 100644 |
--- a/src/flags.cc |
+++ b/src/flags.cc |
@@ -394,7 +394,7 @@ int FlagList::SetFlagsFromCommandLine(int* argc, |
*flag->maybe_bool_variable() = MaybeBoolFlag::Create(true, !is_bool); |
break; |
case Flag::TYPE_INT: |
- *flag->int_variable() = strtol(value, &endp, 10); // NOLINT |
+ *flag->int_variable() = static_cast<int>(strtol(value, &endp, 10)); |
break; |
case Flag::TYPE_FLOAT: |
*flag->float_variable() = strtod(value, &endp); |