summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/logic/amgc_enum_members.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logic/amgc_enum_members.c b/src/logic/amgc_enum_members.c
index 163cbe7..698b6f4 100644
--- a/src/logic/amgc_enum_members.c
+++ b/src/logic/amgc_enum_members.c
@@ -42,7 +42,9 @@ static int enumval_cmp(const void * ptra, const void * ptrb)
return 1;
else if ((entityb->enumval <= -128) && (entitya->enumval >= 0))
return -1;
- else if ((entitya->enumval < entityb->enumval) && (entitya->enumval > -128) && (entityb->enumval > -128))
+ else if ((entitya->enumval < entityb->enumval)
+ && (entitya->enumval > -128)
+ && (entityb->enumval > -128))
return -1;
else
return 1;