discuss-gnustep
[Top][All Lists]
Advanced

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

Small NSBrowser bug


From: Andreas Bohne
Subject: Small NSBrowser bug
Date: Tue, 21 May 2002 17:45:04 +0200

Hi,

I encountered a small bug (unsigned instead of int var) in NSBrowser.m that led to a crash if column < 0. Not sure how to submit this, anyway, here is the diff:

Index: NSBrowser.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSBrowser.m,v
retrieving revision 1.82
diff -u -r1.82 NSBrowser.m
--- NSBrowser.m 12 Apr 2002 02:15:51 -0000      1.82
+++ NSBrowser.m 21 May 2002 15:36:36 -0000
@@ -568,7 +568,8 @@
   NSArray      *subStrings;
   NSString     *aStr;
   unsigned     numberOfSubStrings;
-  unsigned     i, j, column = 0;
+  unsigned     i, j;
+  int           column = 0;
   BOOL         found = YES;

   // If that's all, return.




reply via email to

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