[gnome-nibbles/gnome-3-18: 2/2] Remove the two asserts that crash the most
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/gnome-3-18: 2/2] Remove the two asserts that crash the most
- Date: Wed, 12 Aug 2015 19:42:52 +0000 (UTC)
commit 953afa75a3d4438c7a441382d2a4b5536b23c7fc
Author: Bryan Quigley <bryanquigs src gnome org>
Date: Mon Sep 22 18:36:29 2014 -0400
Remove the two asserts that crash the most
src/board.c | 4 ++--
src/worm.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/board.c b/src/board.c
index 479f578..3ab56c4 100644
--- a/src/board.c
+++ b/src/board.c
@@ -455,8 +455,8 @@ gnibbles_board_count_worm_segments_for_worm (GnibblesBoard *board, GnibblesWorm
}
}
- if (count > 0)
- g_assert_cmpint (count, ==, worm->length);
+ //if (count > 0)
+ //g_assert_cmpint (count, ==, worm->length);
return count;
}
diff --git a/src/worm.c b/src/worm.c
index 164c670..c212783 100644
--- a/src/worm.c
+++ b/src/worm.c
@@ -440,7 +440,7 @@ gnibbles_worm_move_tail_pointer (GnibblesWorm *worm)
board->walls[worm->xtail][worm->ytail] = worm->number + WORMCHAR;
}
- g_assert_cmpint (board->walls[worm->xtail][worm->ytail], ==, worm->number + WORMCHAR);
+ // g_assert_cmpint (board->walls[worm->xtail][worm->ytail], ==, worm->number + WORMCHAR);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]