rename __suppress_ubsan to FLATBUFFERS_SUPPRESS_UBSAN

This commit is contained in:
Derek Bailey
2023-05-10 14:16:31 -07:00
parent 85f71321fd
commit b5957975c5
3 changed files with 11 additions and 11 deletions

View File

@@ -257,7 +257,7 @@ inline void strtoval_impl(double *val, const char *str, char **endptr) {
}
// UBSAN: double to float is safe if numeric_limits<float>::is_iec559 is true.
__suppress_ubsan__("float-cast-overflow")
FLATBUFFERS_SUPPRESS_UBSAN("float-cast-overflow")
inline void strtoval_impl(float *val, const char *str, char **endptr) {
*val = __strtof_impl(str, endptr);
}