Date: Thu, 7 Oct 1999 12:11:41 +0400 (MSD) From: isupov@moonhe.jinr.ru To: FreeBSD-gnats-submit@freebsd.org Subject: ports/14176: seahaven(6) obtains SIGFPE Message-ID: <199910070811.MAA53105@moonhe.jinr.ru>
next in thread | raw e-mail | index | archive | help
>Number: 14176 >Category: ports >Synopsis: seahaven(6) obtains SIGFPE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Oct 7 01:20:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Isupov A.Yu. >Release: FreeBSD 3.2-RELEASE i386 >Organization: LHE, JINR >Environment: FreeBSD 3.2-RELEASE i386 >Description: seahaven(6) obtains SIGFPE in ScoreRec::repaint() at score.C:86 >How-To-Repeat: Run seahaven(6) "from scratch", without .seahavensave >Fix: Following must be added in the /usr/ports/games/seahaven/patches as file `patch-aa' : -----------------------cut here--------------------- *** score.C.orig Thu Oct 7 11:50:21 1999 --- score.C Thu Oct 7 11:54:40 1999 *************** *** 82,89 **** printLine("%5d game%s played", wins + losses); curx = GAMEWIDTH / 4; cury = 0; ! printLine("Winning average: %5.2f%%", 100.0 * ((double) wins / (double) (wins + losses))); curx = GAMEWIDTH / 2; cury = 0; if (streak > 0) { --- 82,92 ---- printLine("%5d game%s played", wins + losses); curx = GAMEWIDTH / 4; cury = 0; ! if (wins + losses) ! printLine("Winning average: %5.2f%%", 100.0 * ((double) wins / (double) (wins + losses))); + else + printLine("Winning average: undefined"); curx = GAMEWIDTH / 2; cury = 0; if (streak > 0) { -----------------------end of cut------------------- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910070811.MAA53105>