bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #4711] Problem handling/formating long long numbers


From: nobody
Subject: [bug #4711] Problem handling/formating long long numbers
Date: Mon, 11 Aug 2003 14:18:22 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030428 Galeon/1.3.3

=================== BUG #4711: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4711&group_id=99

Changes by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: lun 11.08.2003 à 20:18 (Europe/Paris)

------------------ Additional Follow-up Comments ----------------------------
Problem seems to come from GSFormat wich seems to not handle double length 
modifier like hh, ll

There's also a documentation problem in NSNumber.m:
<term> long long</term>
<desc>%li</desc>
is the same as for long (it should be %lli instead of %li).

idem for unsigned long long



=================== BUG #4711: FULL BUG SNAPSHOT ===================


Soumis par: mguesdon                  Projet: GNUstep                       
Signalé le: lun 11.08.2003 à 20:02
Category:  Base/Foundation            Severity:  7                          
Bug Group:  None                      Resolution:  None                     
Assigned to:  None                    Status:  Open                         

Summary:  Problem handling/formating long long numbers

Original Submission:  Jus try this:

NSNumber* testNumber=[NSNumber numberWithLongLong:3372036854775807LL];

NSDebugMLog(@"testNumber=%@",testNumber);
        ==> -2098855937              (Bad)
      
NSDebugMLog(@"[testNumber longLongValue]=%lld",[testNumber
longLongValue]);
        ==> -2098855937              (Bad)

fprintf(stdour,"[value longLongValue]=%lldn",[value longLongValue]);
        ==> 3372036854775807         (Good)



Follow-up Comments
*******************

-------------------------------------------------------
Date: lun 11.08.2003 à 20:18        By: mguesdon
Problem seems to come from GSFormat wich seems to not handle double length 
modifier like hh, ll

There's also a documentation problem in NSNumber.m:
<term> long long</term>
<desc>%li</desc>
is the same as for long (it should be %lli instead of %li).

idem for unsigned long long


La liste CC est vide


Il n'y a aucun fichier attaché actuellement


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4711&group_id=99

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]