mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +00:00
delete zero width space characters <U+200B>'s to avoid MSVC warning C4819 (#5133)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
fcacb46d01
commit
347dba8501
@@ -272,7 +272,7 @@ inline void strtoval_impl(float *val, const char *str, char **endptr) {
|
||||
//
|
||||
// Return value (like strtoull and strtoll, but reject partial result):
|
||||
// - If successful, an integer value corresponding to the str is returned.
|
||||
// - If full string conversion can't be performed, 0 is returned.
|
||||
// - If full string conversion can't be performed, 0 is returned.
|
||||
// - If the converted value falls out of range of corresponding return type, a
|
||||
// range error occurs. In this case value MAX(T)/MIN(T) is returned.
|
||||
template<typename T>
|
||||
@@ -316,7 +316,7 @@ inline bool StringToFloatImpl(T *val, const char *const str) {
|
||||
// Convert a string to an instance of T.
|
||||
// Return value (matched with StringToInteger64Impl and strtod):
|
||||
// - If successful, a numeric value corresponding to the str is returned.
|
||||
// - If full string conversion can't be performed, 0 is returned.
|
||||
// - If full string conversion can't be performed, 0 is returned.
|
||||
// - If the converted value falls out of range of corresponding return type, a
|
||||
// range error occurs. In this case value MAX(T)/MIN(T) is returned.
|
||||
template<typename T> inline bool StringToNumber(const char *s, T *val) {
|
||||
|
||||
Reference in New Issue
Block a user