From a0687079f40f6faeefbd7385e927a199ed05d2e0 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sat, 19 Aug 2023 17:34:55 -0700 Subject: [PATCH] fix MAXDATA for non-CALC2_COMPAT small pointer case --- zmath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zmath.h b/zmath.h index 240d1c5..9689946 100644 --- a/zmath.h +++ b/zmath.h @@ -277,7 +277,7 @@ typedef SB32 LEN; /* else assume we can support at least 4 octet pointers */ #elif PTR_LEN >= 8 #define MAXDATA ((LEN) 1<<(64-4)) /* 1/16 of a 64-bit address space */ #elif PTR_LEN >= 4 && PTR_LEN < 8 -#define MAXDATA ((LEN) 1<<(32-2)) /* 1/16 of a 32-bit address space */ +#define MAXDATA ((LEN) 1<<(32-4)) /* 1/16 of a 32-bit address space */ #else /\oo/\ unsupproted PTR_LEN /\oo/\ !! /* firewall - reject PTR_LEN as unsupported */ #endif