fix failing tests
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
[compilation]
|
[compilation]
|
||||||
CFLAGS = "-Wno-incompatible-function-pointer-types"
|
CFLAGS = "-Wno-incompatible-function-pointer-types -DRTREE_NOATOMICS"
|
||||||
6
rtree.c
6
rtree.c
@@ -60,8 +60,7 @@ QJSCLASS(rtree,)
|
|||||||
JSC_CCALL(rtree_add,
|
JSC_CCALL(rtree_add,
|
||||||
rtree *tree = js2rtree(js,self);
|
rtree *tree = js2rtree(js,self);
|
||||||
JSValue v = argv[0];
|
JSValue v = argv[0];
|
||||||
rect r;
|
rect r = js2rect(js,v);
|
||||||
JS_GETATOM(js,r,v,rect,rect)
|
|
||||||
NUMTYPE min[3];
|
NUMTYPE min[3];
|
||||||
NUMTYPE max[3];
|
NUMTYPE max[3];
|
||||||
min[0] = r.x;
|
min[0] = r.x;
|
||||||
@@ -90,8 +89,7 @@ static int rtree_cmp(const JSValue *a, const JSValue *b, JSContext *js)
|
|||||||
JSC_CCALL(rtree_delete,
|
JSC_CCALL(rtree_delete,
|
||||||
rtree *tree = js2rtree(js,self);
|
rtree *tree = js2rtree(js,self);
|
||||||
JSValue v = argv[0];
|
JSValue v = argv[0];
|
||||||
rect r;
|
rect r = js2rect(js,v);
|
||||||
JS_GETATOM(js,r,v,rect,rect)
|
|
||||||
NUMTYPE min[3];
|
NUMTYPE min[3];
|
||||||
NUMTYPE max[3];
|
NUMTYPE max[3];
|
||||||
min[0] = r.x;
|
min[0] = r.x;
|
||||||
|
|||||||
Reference in New Issue
Block a user