From owner-freebsd-bugs Thu Feb 21 5: 0:18 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 84B1237B416 for ; Thu, 21 Feb 2002 05:00:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1LD01l94573; Thu, 21 Feb 2002 05:00:01 -0800 (PST) (envelope-from gnats) Received: from fafoe.dyndns.org (chello212186121237.14.vie.surfer.at [212.186.121.237]) by hub.freebsd.org (Postfix) with ESMTP id 6D46B37B404 for ; Thu, 21 Feb 2002 04:57:05 -0800 (PST) Received: by stefan.fafoe (Postfix, from userid 1001) id C5AF1EA2C; Thu, 21 Feb 2002 13:56:03 +0100 (CET) Message-Id: <20020221125603.C5AF1EA2C@stefan.fafoe> Date: Thu, 21 Feb 2002 13:56:03 +0100 (CET) From: Stefan Farfeleder Reply-To: Stefan Farfeleder To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: misc/35181: [PATCH] minor change to games/primes/pr_tbl.c Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35181 >Category: misc >Synopsis: [PATCH] minor change to games/primes/pr_tbl.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 21 05:00:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Stefan Farfeleder >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD stefan.fafoe 4.5-STABLE FreeBSD 4.5-STABLE #5: Sun Feb 17 00:06:38 CET 2002 root@stefan.fafoe:/usr/obj/usr/src/sys/MORDOR i386 >Description: pr_limit should be a pointer to `ubig' not to `unsigned long', as this is how it is declared in primes.c (this is the only case where unsigned long is used instead of its typedef ubig). >How-To-Repeat: >Fix: Index: src/games/primes/pr_tbl.c =================================================================== RCS file: /home/ncvs/src/games/primes/pr_tbl.c,v retrieving revision 1.3 diff -u -r1.3 pr_tbl.c --- src/games/primes/pr_tbl.c 30 Nov 1999 03:49:11 -0000 1.3 +++ src/games/primes/pr_tbl.c 21 Feb 2002 12:41:31 -0000 @@ -547,4 +547,4 @@ }; /* pr_limit - largest prime in the prime table */ -unsigned long *pr_limit = &prime[(sizeof(prime)/sizeof(prime[0]))-1]; +ubig *pr_limit = &prime[(sizeof(prime)/sizeof(prime[0]))-1]; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message