mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-29 16:14:59 -04:00
Link MSL_C/scanf
This commit is contained in:
+1
-1
@@ -849,7 +849,7 @@ config.libs = [
|
||||
Object(NonMatching, "MSL_C.PPCEABI.bare.H/s_ldexp.c"),
|
||||
Object(Matching, "MSL_C.PPCEABI.bare.H/s_modf.c"),
|
||||
Object(Matching, "MSL_C.PPCEABI.bare.H/s_sin.c"),
|
||||
Object(NonMatching, "MSL_C.PPCEABI.bare.H/scanf.c"),
|
||||
Object(Matching, "MSL_C.PPCEABI.bare.H/scanf.c"),
|
||||
Object(Matching, "MSL_C.PPCEABI.bare.H/string.c"),
|
||||
Object(Matching, "MSL_C.PPCEABI.bare.H/strtoul.c"),
|
||||
Object(Matching, "MSL_C.PPCEABI.bare.H/uart_console_io.c"),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "MSL_C/scanf.h"
|
||||
|
||||
int __StringRead(void* pPtr, int ch, int act) {
|
||||
int ret;
|
||||
char ret;
|
||||
__InStrCtrl* Iscp = (__InStrCtrl*)pPtr;
|
||||
|
||||
switch (act) {
|
||||
@@ -13,7 +13,7 @@ int __StringRead(void* pPtr, int ch, int act) {
|
||||
return -1;
|
||||
} else {
|
||||
Iscp->NextChar++;
|
||||
return ret;
|
||||
return (unsigned char)ret;
|
||||
}
|
||||
|
||||
case __UngetAChar:
|
||||
|
||||
Reference in New Issue
Block a user