Issue 4115 (#4518)

* efiPrint NaN handling #4115

* fresh chibi

* efiPrint NaN handling #4115
This commit is contained in:
rusefillc 2022-09-01 23:13:23 -04:00 committed by GitHub
parent 8e46e9e61f
commit fd2efcdb78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit cf743886935c39cbf2ca711e54e9e64238da6e57
Subproject commit 639f3ea42ac1212b03c6a3b04448bab2fa982ad3

View File

@ -49,9 +49,9 @@ static void runChprintfTest() {
ts.eos = 0; // reset
// chprintf((BaseSequentialStream*)&ts, "%.2f - %.2f", NAN, 0/0);
// ts.buffer[ts.eos] = 0;
// assertString(testBuffer, "0.23/239.9320/0.1234");
chprintf((BaseSequentialStream*)&ts, "%.2f - %.2f", NAN, NAN);
ts.buffer[ts.eos] = 0;
assertString(testBuffer, "NaN - NaN");
// it's a very, very long and mostly forgotten story how this became our %.2f precision format
ts.eos = 0; // reset