mirror of
https://github.com/simh/simh.git
synced 2026-01-26 04:01:38 +00:00
SCP: Fix expression evaluation divide by zero, and avoid parameter substitution
This allows bare the % character to to properly be the moduls operator and avoids potential ambiguous variable insertions.
This commit is contained in:
@@ -239,10 +239,12 @@ typedef unsigned long t_uint64;
|
||||
typedef t_int64 t_svalue; /* signed value */
|
||||
typedef t_uint64 t_value; /* value */
|
||||
#define T_VALUE_MAX 0xffffffffffffffffuLL
|
||||
#define T_SVALUE_MAX 0x7fffffffffffffffLL
|
||||
#else /* 32b data */
|
||||
typedef int32 t_svalue;
|
||||
typedef uint32 t_value;
|
||||
#define T_VALUE_MAX 0xffffffffUL
|
||||
#define T_SVALUE_MAX 0x7fffffffL
|
||||
#endif /* end 64b data */
|
||||
|
||||
#if defined (USE_INT64) && defined (USE_ADDR64) /* 64b address */
|
||||
|
||||
Reference in New Issue
Block a user