[Base] Fix formatting in string_util.cc.

This commit is contained in:
gibbed 2019-08-04 07:32:24 -05:00
parent 693958f8b7
commit 4248f9ed19
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,8 @@ inline std::string to_string(const __m128& value) {
char buffer[128]; char buffer[128];
float f[4]; float f[4];
_mm_storeu_ps(f, value); _mm_storeu_ps(f, value);
std::snprintf(buffer, sizeof(buffer), "(%F, %F, %F, %F)", f[0], f[1], f[2], f[3]); std::snprintf(buffer, sizeof(buffer), "(%F, %F, %F, %F)", f[0], f[1], f[2],
f[3]);
return std::string(buffer); return std::string(buffer);
} }