summaryrefslogtreecommitdiffstats
path: root/src/libvpsc/csolve_VPSC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libvpsc/csolve_VPSC.cpp')
-rw-r--r--src/libvpsc/csolve_VPSC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libvpsc/csolve_VPSC.cpp b/src/libvpsc/csolve_VPSC.cpp
index 4be73a19e..60e88a50b 100644
--- a/src/libvpsc/csolve_VPSC.cpp
+++ b/src/libvpsc/csolve_VPSC.cpp
@@ -8,6 +8,7 @@
*
* Released under GNU LGPL. Read the file 'COPYING' for more information.
*/
+#include <glib.h>
#include <iostream>
#include <cassert>
#include <cstdlib>
@@ -43,7 +44,7 @@ int genXConstraints(int n, boxf* bb, Variable** vs, Constraint*** cs,int transit
return m;
}
int genYConstraints(int n, boxf* bb, Variable** vs, Constraint*** cs) {
- assert(n > 0);
+ g_assert(n > 0);
Rectangle* rs[n];
for(int i=0;i<n;i++) {
rs[i]=new Rectangle(bb[i].LL.x,bb[i].UR.x,bb[i].LL.y,bb[i].UR.y);