mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -04:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user