[Decompiler] Fix up pretty printing and other small changes (#311)

* fix up pretty printing

* wip

* fix pointer cast signed vs unsigned issue
This commit is contained in:
water111
2021-03-06 20:16:48 -05:00
committed by GitHub
parent 0bf189f582
commit d8a82eeca1
16 changed files with 745 additions and 454 deletions
+2 -1
View File
@@ -38,6 +38,7 @@
*
*/
#include <cinttypes>
#include "Object.h"
#include "common/util/FileUtil.h"
#include "third-party/fmt/core.h"
@@ -92,7 +93,7 @@ std::string fixed_to_string(FloatType x) {
// it's an integer number, so let's just get this over with asap
if (exact_int) {
sprintf(buff, "%lld.0", rounded);
sprintf(buff, "%" PRId64 ".0", rounded);
return {buff};
} else {
// not an integer - see how many decimal cases we need