Avoid unsigned unary minux warning on MSVC in IntFromChars

pull/341/head
Jonathan G Rennison 3 years ago
parent 82582895cc
commit 3ef6b29f4a

@ -72,7 +72,11 @@ inline bool IntFromChars(const char* first, const char* last, T& value)
}
}
if (start == first) return false;
value = negative ? -out : out;
if (std::is_signed<T>::value) {
value = negative ? -out : out;
} else {
value = out;
}
return true;
}

Loading…
Cancel
Save