fix failing tests

This commit is contained in:
2025-12-05 19:37:57 -06:00
parent f29603b73b
commit 7f0d09e852
2 changed files with 3 additions and 5 deletions

View File

@@ -1,2 +1,2 @@
[compilation]
CFLAGS = "-Wno-incompatible-function-pointer-types"
CFLAGS = "-Wno-incompatible-function-pointer-types -DRTREE_NOATOMICS"

View File

@@ -60,8 +60,7 @@ QJSCLASS(rtree,)
JSC_CCALL(rtree_add,
rtree *tree = js2rtree(js,self);
JSValue v = argv[0];
rect r;
JS_GETATOM(js,r,v,rect,rect)
rect r = js2rect(js,v);
NUMTYPE min[3];
NUMTYPE max[3];
min[0] = r.x;
@@ -90,8 +89,7 @@ static int rtree_cmp(const JSValue *a, const JSValue *b, JSContext *js)
JSC_CCALL(rtree_delete,
rtree *tree = js2rtree(js,self);
JSValue v = argv[0];
rect r;
JS_GETATOM(js,r,v,rect,rect)
rect r = js2rect(js,v);
NUMTYPE min[3];
NUMTYPE max[3];
min[0] = r.x;