Date: Thu, 21 Feb 2002 13:56:03 +0100 (CET) From: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> To: FreeBSD-gnats-submit@freebsd.org Subject: misc/35181: [PATCH] minor change to games/primes/pr_tbl.c Message-ID: <20020221125603.C5AF1EA2C@stefan.fafoe>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020221125603.C5AF1EA2C>