~rabbits/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] (uxn.c) Fix pointer wrapping issues

Details
Message ID
<20231030175445.10244-1-remko@el-tramo.be>
DKIM signature
missing
Download raw message
Patch: +6 -6
---
 src/uxn.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/uxn.c b/src/uxn.c
index 4c2ca19..49ef3eb 100644
--- a/src/uxn.c
+++ b/src/uxn.c
@@ -17,12 +17,12 @@ WITH REGARD TO THIS SOFTWARE.
[   L2   ][   N2   ][   T2   ] <
*/

#define T *(s->dat + s->ptr - 1)
#define N *(s->dat + s->ptr - 2)
#define L *(s->dat + s->ptr - 3)
#define X *(s->dat + s->ptr - 4)
#define Y *(s->dat + s->ptr - 5)
#define Z *(s->dat + s->ptr - 6)
#define T *(s->dat + s->ptr)
#define N *(s->dat + (Uint8)(s->ptr - 1))
#define L *(s->dat + (Uint8)(s->ptr - 2))
#define X *(s->dat + (Uint8)(s->ptr - 3))
#define Y *(s->dat + (Uint8)(s->ptr - 4))
#define Z *(s->dat + (Uint8)(s->ptr - 5))
#define T2 (N << 8 | T)
#define H2 (L << 8 | N)
#define N2 (X << 8 | L)
-- 
2.39.0
Reply to thread Export thread (mbox)