From c81e6b9c3cb21f66a8194b36e70316bdd18290d8 Mon Sep 17 00:00:00 2001 From: Ken Rector Date: Fri, 1 Jul 2022 07:23:35 -1000 Subject: [PATCH] SCP: Fix parenthesis to avoid potential compiler warnings --- scp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scp.c b/scp.c index 08fe5c6e..6e798382 100644 --- a/scp.c +++ b/scp.c @@ -10048,17 +10048,17 @@ ptr = ((char *) rptr->loc) + (idx * rptr->stride); /* point at the starting if (rptr->size == sizeof (uint8)) /* store the value */ *((uint8 *) ptr) = /* using a size */ - ((uint8) (*((uint8 *) ptr) & mask) | val); /* appropriate to */ + (uint8) ((*((uint8 *) ptr) & mask) | val); /* appropriate to */ /* the size of */ else if (rptr->size == sizeof (uint16)) /* the underlying type */ *((uint16 *) ptr) = - ((uint16) (*((uint16 *) ptr) & mask) | val); + (uint16) ((*((uint16 *) ptr) & mask) | val); else if (rptr->size == sizeof (uint32)) *((uint32 *) ptr) = - ((uint32) (*((uint32 *) ptr) & mask) | val); + (uint32) ((*((uint32 *) ptr) & mask) | val); else /* if the element size is non-standard */ *((t_value *) ptr) = /* then access using the largest size permitted */