[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-dev] [Bug #1534] -[GSUnicodeInlineString -intValue] bug
From: |
nobody |
Subject: |
[Savannah-dev] [Bug #1534] -[GSUnicodeInlineString -intValue] bug |
Date: |
Mon, 28 Oct 2002 08:38:09 -0500 |
=================== BUG #1534: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1534&group_id=11
Changes by: Mathieu Roy <address@hidden>
Date: 2002-Oct-28 14:38 (Europe/Paris)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Invalid
Assigned to | None | yeupou
Status | Open | Closed
=================== BUG #1534: FULL BUG SNAPSHOT ===================
Submitted by: newhousera Project: Savannah
Submitted on: 2002-Oct-28 14:30
Category: Other Severity: 5 - Average
Priority: None Bug Group: None
Resolution: Invalid Assigned to: yeupou
Status: Closed Effort: 0.00
Summary: -[GSUnicodeInlineString -intValue] bug
Original Submission: Using gnustep-base-1.4.1 on a SUN Blade 1000 with a
Solaris 2.8 OS, the following code:
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init];
id test1;
test1 = [NSString stringWithFormat:@" %d", 0x7FFFFFFF];
NSLog(@"class: %@ raw: %d intValue: %d length: %d",
NSStringFromClass([test1 class]), 0x7FFFFFFF,
[test1 intValue], [test1 length]);
[pool release];
exit(0);
return 0; // Make for ANSI spec.
}
results in:
2002-10-25 07:56:53.515 kindTest[11448] class: GSUnicodeInlineString raw:
2147483647 intValue: 21474 length: 14
(for comparison, the result from OpenStep 4.2 on a Sparc-20
is:
Oct 25 07:42:31 kindTest[7787] class: NSCStringWithGap raw: 2147483647
intValue: 2147483647 length: 14
)
This problem (and similiar ones) are corrected when lines 571, 945, and 1110 in
GSString.m are changed from:
unsigned int l = self->_count < 10 ? self->_count : 9;
to:
unsigned int l = self->_count;
Is there any reason these limits should not be removed?
No Followups Have Been Posted
CC list is empty
No files currently attached
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=1534&group_id=11