summaryrefslogtreecommitdiff
path: root/navit/coord.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-10-15 18:39:03 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-10-15 18:39:03 +0000
commitbf3971336f9b7b9ac95edf97649adb7f79b8a04c (patch)
treed9abf4d8f341b6503d3b019cda248859166832ad /navit/coord.c
parent244d149bd53729635eb09caa1693c2a2f0fb7b62 (diff)
downloadnavit-bf3971336f9b7b9ac95edf97649adb7f79b8a04c.tar.gz
Fix:Core:Replaced g_assert with dbg_assert
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1477 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/coord.c')
-rw-r--r--navit/coord.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/navit/coord.c b/navit/coord.c
index ba825e22a..fc262bb5e 100644
--- a/navit/coord.c
+++ b/navit/coord.c
@@ -68,8 +68,8 @@ coord_rect_new(struct coord *lu, struct coord *rl)
{
struct coord_rect *r=g_new(struct coord_rect, 1);
- g_assert(lu->x <= rl->x);
- g_assert(lu->y >= rl->y);
+ dbg_assert(lu->x <= rl->x);
+ dbg_assert(lu->y >= rl->y);
r->lu=*lu;
r->rl=*rl;
@@ -87,10 +87,10 @@ coord_rect_destroy(struct coord_rect *r)
int
coord_rect_overlap(struct coord_rect *r1, struct coord_rect *r2)
{
- g_assert(r1->lu.x <= r1->rl.x);
- g_assert(r1->lu.y >= r1->rl.y);
- g_assert(r2->lu.x <= r2->rl.x);
- g_assert(r2->lu.y >= r2->rl.y);
+ dbg_assert(r1->lu.x <= r1->rl.x);
+ dbg_assert(r1->lu.y >= r1->rl.y);
+ dbg_assert(r2->lu.x <= r2->rl.x);
+ dbg_assert(r2->lu.y >= r2->rl.y);
dbg(1,"0x%x,0x%x - 0x%x,0x%x vs 0x%x,0x%x - 0x%x,0x%x\n", r1->lu.x, r1->lu.y, r1->rl.x, r1->rl.y, r2->lu.x, r2->lu.y, r2->rl.x, r2->rl.y);
if (r1->lu.x > r2->rl.x)
return 0;
@@ -106,8 +106,8 @@ coord_rect_overlap(struct coord_rect *r1, struct coord_rect *r2)
int
coord_rect_contains(struct coord_rect *r, struct coord *c)
{
- g_assert(r->lu.x <= r->rl.x);
- g_assert(r->lu.y >= r->rl.y);
+ dbg_assert(r->lu.x <= r->rl.x);
+ dbg_assert(r->lu.y >= r->rl.y);
if (c->x < r->lu.x)
return 0;
if (c->x > r->rl.x)