From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.bugs Subject: [bugs #11197] Error in string->number Date: Tue, 28 Dec 2004 18:47:58 -0500 Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1104277013 6964 80.91.229.6 (28 Dec 2004 23:36:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Dec 2004 23:36:53 +0000 (UTC) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Dec 29 00:36:48 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CjQtU-0000Ht-00 for ; Wed, 29 Dec 2004 00:36:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CjR4L-0002dG-Qe for guile-bugs@m.gmane.org; Tue, 28 Dec 2004 18:48:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CjR4J-0002b5-4K for bug-guile@gnu.org; Tue, 28 Dec 2004 18:47:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CjR4I-0002at-M3 for bug-guile@gnu.org; Tue, 28 Dec 2004 18:47:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CjR4I-0002aq-Il for bug-guile@gnu.org; Tue, 28 Dec 2004 18:47:58 -0500 Original-Received: from [199.232.41.4] (helo=savannah.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CjQjJ-0007Vq-Jf for bug-guile@gnu.org; Tue, 28 Dec 2004 18:26:17 -0500 Original-Received: from localhost ([127.0.0.1]) by savannah.gnu.org with smtp (Exim 4.34) id 1CjQjJ-00055W-7p for bug-guile@gnu.org; Tue, 28 Dec 2004 18:26:17 -0500 Original-To: bug-guile@gnu.org X-Savannah-Server: savannah.gnu.org:443 [199.232.41.3] X-Savannah-Project: guile X-Savannah-Artifact: bugs X-Savannah-Artifact-ID: 11197 User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5 X-Apparently-From: 61.8.45.203 X-Copy-To: Array X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:2379 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:2379 This mail is an automated notification from the bugs tracker of the project: Guile. /**************************************************************************/ [bugs #11197] Latest Modifications: Changes by: Kevin Ryde 'Date: Tue 12/28/04 at 23:26 (Antarctica/McMurdo) What | Removed | Added --------------------------------------------------------------------------- Status | Open | Closed /**************************************************************************/ [bugs #11197] Full Item Snapshot: URL: Project: Guile Submitted by: 0 On: Fri 12/03/04 at 08:10 Category: None Severity: 5 - Average Item Group: None Resolution: Fixed Privacy: Public Assigned to: None Status: Closed Summary: Error in string->number Original Submission: guile> (string->number "111111" 7) 19608 guile> (string->number "111111" 8) 37449 guile> (string->number "111111" 9) :4:1: In procedure bignum in expression (string->number "111111" 9): :4:1: Numerical overflow ABORT: (numerical-overflow) Type "(backtrace)" to get more information or "(debug)" to enter the debugger. guile> (string->number "111111" 10) 111111 guile> (string->number "111111" 11) 177156 Follow-up Comments ------------------ ------------------------------------------------------- Date: Wed 12/08/04 at 23:00 By: Kevin Ryde Fixed in the cvs, close this when 1.6.7 is released. ------------------------------------------------------- Date: Sat 12/04/04 at 22:02 By: Kevin Ryde In fact only bases 2, 10 and 16 look right. Others have a bad bignum size calculation and overflow in various cases. Only bases 2, 8, 10 and 16 are documented as supported, though others (below 16) are not explicitly rejected. Maybe that should change too. For detailed info, follow this link: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile