summaryrefslogtreecommitdiff
path: root/src/libultra_boot_O2/_Printf.c
diff options
context:
space:
mode:
authorRandom <28494085+Random06457@users.noreply.github.com>2020-10-03 17:22:44 +0200
committerGitHub <noreply@github.com>2020-10-03 11:22:44 -0400
commit174af7384d1cfcbf15da02d9069bf02bdc433c20 (patch)
treee4fb18346f71047c123ec4d34a80ae7e4d8ab9ea /src/libultra_boot_O2/_Printf.c
parent6136ee6debd570a63fc695a6f4664553303f2324 (diff)
libultra cleanup (#215)
* cleanup libultra * fixes - use quotes instead of <> for includes - add macros for zelda specific thread priorities - fix Makefile - properly format the remaining pfs structs * fix button macros + add CHECK_BTN_ANY/CHECK_BTN_ALL * remove ULTRA_ABS * fix includes * update z_player.c/z_lib.c + run format.sh * merge upstream/master * fix include in En_Goroiwa * fix includes
Diffstat (limited to 'src/libultra_boot_O2/_Printf.c')
-rw-r--r--src/libultra_boot_O2/_Printf.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/libultra_boot_O2/_Printf.c b/src/libultra_boot_O2/_Printf.c
index a5f922d56..e8fa2c696 100644
--- a/src/libultra_boot_O2/_Printf.c
+++ b/src/libultra_boot_O2/_Printf.c
@@ -1,7 +1,4 @@
-#include <ultra64.h>
-#include <ultra64/printf.h>
-#include <stdarg.h>
-#include <string.h>
+#include "global.h"
#define ATOI(i, a) \
for (i = 0; *a >= '0' && *a <= '9'; a++) \
@@ -17,8 +14,8 @@
}
#define _PAD(m, src, extracond) \
if (extracond && m > 0) { \
- int i; \
- int j; \
+ s32 i; \
+ s32 j; \
for (j = m; j > 0; j -= i) { \
if ((u32)j > 32) \
i = 32; \
@@ -203,7 +200,7 @@ void _Putfld(_Pft* px, va_list* pap, u8 code, u8* ac) {
break;
case 'p':
- px->v.ll = (long)va_arg(*pap, void*);
+ px->v.ll = (s64)va_arg(*pap, void*);
px->s = (char*)&ac[px->n0];
_Litob(px, 'x');
break;