11 Commits

Author SHA1 Message Date
Thomas Huth
46bef05131 Avoid using isspace() with signed characters
"char" is signed by default on many systems, so when using a "char"
variable as input to isspace(), which takes an "int" parameter, the
parameter gets sign-extended. Now in some libc implementations, the
isspace() function is implemented as a macro that directly indexes
an array for looking up the result - which might go wrong, of course,
if the byte values has the highest bit set. So when compiling Hatari
with Cygwin, there are the following compiler warnings:

.../build68k.c: In function ‘main’:
.../build68k.c:314:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  314 |   while (isspace(*opstrp))
      |                  ^~~~~~~
.../build68k.c:319:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  319 |    if (!isspace (*osendp))
      |                  ^~~~~~~
.../build68k.c:331:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  331 |   while (!isspace(*p++));
      |                   ^~~~

Thus let's make sure to cast the "char" to unsigned first before using
it as parameter to the isspace() function.
2020-10-06 04:44:57 +02:00
Toni Wilen
6bb71af5c2 Aranym JIT merge. 2020-07-27 19:56:31 +03:00
Toni Wilen
70d248a0ad 3400b1 2016-08-21 16:31:30 +03:00
Toni Wilen
19d1d44aea More accurate 68020/030 pipeline emulation.
Totally unusable threaded CPU emulation.
2015-07-13 19:09:21 +03:00
Toni Wilen
b5060fd27e 3100b10 2015-02-21 19:09:26 +02:00
Frode Solheim
676e4732be build68k.cpp: minor changes, reduce compiler warnings 2014-07-12 15:30:12 +02:00
Toni Wilen
be4bcd6985 2700b9 2013-10-20 15:05:09 +03:00
Toni Wilen
56452e0154 2700b7 2013-09-01 14:43:08 +03:00
Toni Wilen
1c40d7abf6 2420b7 2012-07-20 18:17:26 +03:00
Toni Wilen
9bd3fb205a fs-uae portability patch 2012-05-13 17:33:52 +03:00
Toni Wilen
dddda49513 imported winuaesrc2020b11.zip 2010-02-22 22:17:29 +02:00