- GCC ARM64 Support, i.e. natively compiled with gcc on arm64

This commit is contained in:
2025-09-15 02:35:34 +00:00
parent f2a45aa913
commit 80925965d4
10 changed files with 53 additions and 46 deletions

View File

@@ -1040,7 +1040,7 @@ bool file::putc(char c) {
}
int res;
if ((res = fputc(c, _handle)) != c && res != EOF) {
if ((char)(res = fputc(c, _handle)) != c && res != EOF) {
_error = strerror(errno);
return true;
}
@@ -1058,7 +1058,7 @@ bool file::putwc(wchar_t c) {
}
int res;
if ((res = fputc(c, _handle)) != c && res != EOF) {
if ((wchar_t)(res = fputwc(c, _handle)) != c && res != EOF) {
_error = strerror(errno);
return true;
}