NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/42177: rogue/monster.c: typo `=' vs `=='
>Number: 42177
>Category: bin
>Synopsis: rogue/monster.c: typo `=' vs `=='
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 13 14:50:01 +0000 2009
>Originator: NAKAJIMA Yoshihiro
>Release: NetBSD-current/20091009
>Organization:
>Environment:
System: NetBSD asura 5.99.20 NetBSD 5.99.20 (ASURA) #7: Tue Oct 13 19:48:19 JST
2009 nakayosh@asura:/usr/src/sys/arch/amd64/compile/ASURA amd64
Architecture: x86_64
Machine: amd64
>Description:
There is a typo `=' vs `==' in rogue/monster.c.
>How-To-Repeat:
>Fix:
Date: Tue Oct 13 21:34:46 JST 2009
diff -u src/games/rogue/monster.c.ORIG src/games/rogue/monster.c
--- src/games/rogue/monster.c.ORIG 2009-08-12 17:44:45.000000000 +0900
+++ src/games/rogue/monster.c 2009-10-13 21:13:47.000000000 +0900
@@ -1,4 +1,4 @@
-/* $NetBSD: monster.c,v 1.15 2009/08/12 08:44:45 dholland Exp $ */
+/* $NetBSD$ */
/*
* Copyright (c) 1988, 1993
@@ -679,7 +679,7 @@
for (i = 0; i < 9; i++) {
rand_around(i, &row, &col);
- if (((row == rogue.row) && (col = rogue.col)) ||
+ if (((row == rogue.row) && (col == rogue.col)) ||
(row < MIN_ROW) || (row > (DROWS-2)) ||
(col < 0) || (col > (DCOLS-1))) {
continue;
Home |
Main Index |
Thread Index |
Old Index