mirror of
https://github.com/simh/simh.git
synced 2026-02-08 17:22:11 +00:00
Compiler suggested cleanups - mostly const fixups
This commit is contained in:
@@ -1434,7 +1434,7 @@ for (i = 15; i >= 0; i--) { /* chk named reg */
|
||||
}
|
||||
if (*cptr++ != 'R') /* look for R */
|
||||
return NULL;
|
||||
regnum = strtotv (cptr, &tptr, 10); /* look for reg # */
|
||||
regnum = strtotv (cptr, (const char **)&tptr, 10); /* look for reg # */
|
||||
if ((cptr == tptr) || (regnum > 15))
|
||||
return NULL;
|
||||
*rn = (int32) regnum;
|
||||
|
||||
Reference in New Issue
Block a user