From e39965a9f69e0b5005c77e90749cf5782b58493f Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 31 Jul 2017 22:11:44 -0700 Subject: [PATCH] SCP: Add support for unsigned int parsing (t_value) without a range limit --- scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scp.c b/scp.c index fdb3459f..56b85bf3 100644 --- a/scp.c +++ b/scp.c @@ -8176,7 +8176,7 @@ CONST char *tptr; *status = SCPE_OK; val = strtotv ((CONST char *)cptr, &tptr, radix); -if ((cptr == tptr) || (val > max)) +if ((cptr == tptr) || ((max > 0) && (val > max))) *status = SCPE_ARG; else { while (sim_isspace (*tptr)) tptr++;