printf: Fix the format specifier for %A to add the decimal point (#2290)

This commit is contained in:
Sreelakshmi Haridas Maruthur
2025-02-25 13:54:53 -07:00
committed by GitHub
parent 803e665683
commit 6419744d76

View File

@@ -247,7 +247,7 @@ cl_program makeMixedFormatPrintfProgram(cl_kernel* kernel_ptr,
}; };
std::array<std::vector<std::string>, 2> formats = { std::array<std::vector<std::string>, 2> formats = {
{ { "%f", "%e", "%g", "%13a", "%F", "%E", "%G", "%13A" }, { { "%f", "%e", "%g", "%.13a", "%F", "%E", "%G", "%.13A" },
{ "%d", "%i", "%u", "%x", "%o", "%X" } } { "%d", "%i", "%u", "%x", "%o", "%X" } }
}; };
std::vector<char> data_before(2 + genrand_int32(gMTdata) % 8); std::vector<char> data_before(2 + genrand_int32(gMTdata) % 8);