From stefan@fafoe.dyndns.org  Thu Feb 21 04:57:06 2002
Return-Path: <stefan@fafoe.dyndns.org>
Received: from fafoe.dyndns.org (chello212186121237.14.vie.surfer.at [212.186.121.237])
	by hub.freebsd.org (Postfix) with ESMTP id 6D46B37B404
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <e0026813@stud3.tuwien.ac.at>
Reply-To: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] minor change to games/primes/pr_tbl.c
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35181
>Category:       misc
>Synopsis:       [PATCH] minor change to games/primes/pr_tbl.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    billf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 21 05:00:00 PST 2002
>Closed-Date:    Thu Feb 21 11:41:13 PST 2002
>Last-Modified:  Thu Feb 21 11:41:43 PST 2002
>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:
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Thu Feb 21 11:41:13 PST 2002 
State-Changed-Why:  
fixed in rev 1.4 of src/games/primes/pr_tbl.c, thanks. 


Responsible-Changed-From-To: freebsd-bugs->billf 
Responsible-Changed-By: billf 
Responsible-Changed-When: Thu Feb 21 11:41:13 PST 2002 
Responsible-Changed-Why:  
i committed the change 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35181 
>Unformatted:
