shithub: femtolisp

Download patch

ref: 4e18c3987bb3f2940be37db6ccb3d7986902e3a1
parent: dd77f60ddbf09ea4049567cab9e5703514cc206f
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Nov 20 22:29:54 EST 2024

mptoui: fix a warning on 32-bit openbsd

--- a/3rd/mp/mptoui.c
+++ b/3rd/mp/mptoui.c
@@ -25,7 +25,7 @@
 	x = *b->p;
 	if(b->sign < 0)
 		x = 0;
-	else if(b->top > 1 || (Dbytes > sizeof(uint32_t) && x > UINT32_MAX))
+	else if((Dbytes > sizeof(uint32_t) && x > UINT32_MAX) || b->top > 1)
 		x =  UINT32_MAX;
 	return x;
 }