From ed0c5650afacc53f04f873217e42d67e67db3f7d Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 28 Aug 2017 18:34:26 +0100 Subject: [PATCH] Print the right sign on infinities --- renderdoc/serialise/utf8printf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/serialise/utf8printf.cpp b/renderdoc/serialise/utf8printf.cpp index 0c1c4cbb6..dedec5919 100644 --- a/renderdoc/serialise/utf8printf.cpp +++ b/renderdoc/serialise/utf8printf.cpp @@ -482,7 +482,7 @@ void PrintFloat(double argd, FormatterParams &formatter, bool e, bool f, bool g, if(signbit) appendstring(output, actualsize, end, uppercaseDigits ? "-INF" : "-inf"); else - appendstring(output, actualsize, end, uppercaseDigits ? "+INF" : "-inf"); + appendstring(output, actualsize, end, uppercaseDigits ? "+INF" : "+inf"); } else {