mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:30:38 +00:00
Removed compiler warning about signed/unsigned comparision.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17005 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a3aecbd99d
commit
26c82d8aef
7 changed files with 12 additions and 12 deletions
|
@ -846,7 +846,7 @@
|
||||||
NSSize oldFrameSize = [self frame].size;
|
NSSize oldFrameSize = [self frame].size;
|
||||||
float originShift;
|
float originShift;
|
||||||
float dimensionIncrement;
|
float dimensionIncrement;
|
||||||
unsigned int i;
|
int i;
|
||||||
// YES if the whole GSTable needs an update
|
// YES if the whole GSTable needs an update
|
||||||
BOOL tableNeedUpdate = NO;
|
BOOL tableNeedUpdate = NO;
|
||||||
|
|
||||||
|
|
|
@ -737,7 +737,7 @@ SANITY();
|
||||||
info = OBJECTAT(arrayIndex);
|
info = OBJECTAT(arrayIndex);
|
||||||
if (info->loc < NSMaxRange(range))
|
if (info->loc < NSMaxRange(range))
|
||||||
{
|
{
|
||||||
int next = arrayIndex + 1;
|
unsigned int next = arrayIndex + 1;
|
||||||
|
|
||||||
while (next < arraySize)
|
while (next < arraySize)
|
||||||
{
|
{
|
||||||
|
|
|
@ -147,7 +147,7 @@
|
||||||
|
|
||||||
- (void) selectNextTabViewItem: (id)sender
|
- (void) selectNextTabViewItem: (id)sender
|
||||||
{
|
{
|
||||||
if (_selected_item + 1 < [_items count])
|
if ((unsigned)(_selected_item + 1) < [_items count])
|
||||||
[self selectTabViewItemAtIndex: _selected_item+1];
|
[self selectTabViewItemAtIndex: _selected_item+1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3759,7 +3759,7 @@ byExtendingSelection: (BOOL)flag
|
||||||
/* Ask the delegate if we can select all columns or rows */
|
/* Ask the delegate if we can select all columns or rows */
|
||||||
if (_selectingColumns == YES)
|
if (_selectingColumns == YES)
|
||||||
{
|
{
|
||||||
if ([_selectedColumns count] == _numberOfColumns)
|
if ([_selectedColumns count] == (unsigned)_numberOfColumns)
|
||||||
{
|
{
|
||||||
// Nothing to do !
|
// Nothing to do !
|
||||||
return;
|
return;
|
||||||
|
@ -3779,7 +3779,7 @@ byExtendingSelection: (BOOL)flag
|
||||||
}
|
}
|
||||||
else // selecting rows
|
else // selecting rows
|
||||||
{
|
{
|
||||||
if ([_selectedRows count] == _numberOfRows)
|
if ([_selectedRows count] == (unsigned)_numberOfRows)
|
||||||
{
|
{
|
||||||
// Nothing to do !
|
// Nothing to do !
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -166,7 +166,7 @@ static NSNotificationCenter *nc = nil;
|
||||||
{
|
{
|
||||||
if (delta < 0)
|
if (delta < 0)
|
||||||
{
|
{
|
||||||
NSAssert (old.length >= -delta, NSInvalidArgumentException);
|
NSAssert (old.length >= (unsigned)-delta, NSInvalidArgumentException);
|
||||||
}
|
}
|
||||||
_editedRange.length += delta;
|
_editedRange.length += delta;
|
||||||
_editedDelta += delta;
|
_editedDelta += delta;
|
||||||
|
@ -187,7 +187,7 @@ static NSNotificationCenter *nc = nil;
|
||||||
{
|
{
|
||||||
NSRange r;
|
NSRange r;
|
||||||
int original_delta;
|
int original_delta;
|
||||||
int i;
|
unsigned int i;
|
||||||
unsigned length;
|
unsigned length;
|
||||||
|
|
||||||
NSDebugLLog(@"NSText", @"processEditing called in NSTextStorage.");
|
NSDebugLLog(@"NSText", @"processEditing called in NSTextStorage.");
|
||||||
|
@ -235,7 +235,7 @@ static NSNotificationCenter *nc = nil;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (original_delta - _editedDelta > r.length)
|
if ((unsigned)(original_delta - _editedDelta) > r.length)
|
||||||
{
|
{
|
||||||
r.length = 0;
|
r.length = 0;
|
||||||
if (r.location > [self length])
|
if (r.location > [self length])
|
||||||
|
|
|
@ -2290,7 +2290,7 @@ This method is for user changes; see NSTextView_actions.m.
|
||||||
- (void) changeFont: (id)sender
|
- (void) changeFont: (id)sender
|
||||||
{
|
{
|
||||||
NSRange foundRange;
|
NSRange foundRange;
|
||||||
int maxSelRange;
|
unsigned int maxSelRange;
|
||||||
NSRange aRange= [self rangeForUserCharacterAttributeChange];
|
NSRange aRange= [self rangeForUserCharacterAttributeChange];
|
||||||
NSRange searchRange = aRange;
|
NSRange searchRange = aRange;
|
||||||
NSFont *font;
|
NSFont *font;
|
||||||
|
|
|
@ -335,7 +335,7 @@ int
|
||||||
NSTiffRead(TIFF* image, NSTiffInfo* info, char* data)
|
NSTiffRead(TIFF* image, NSTiffInfo* info, char* data)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int row, col;
|
unsigned int row, col;
|
||||||
int maxval;
|
int maxval;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
uint8* outP;
|
uint8* outP;
|
||||||
|
@ -447,7 +447,7 @@ NSTiffWrite(TIFF* image, NSTiffInfo* info, char* data)
|
||||||
tdata_t buf = (tdata_t)data;
|
tdata_t buf = (tdata_t)data;
|
||||||
uint16 sample_info[2];
|
uint16 sample_info[2];
|
||||||
int i;
|
int i;
|
||||||
int row;
|
unsigned int row;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
TIFFSetField(image, TIFFTAG_IMAGEWIDTH, info->width);
|
TIFFSetField(image, TIFFTAG_IMAGEWIDTH, info->width);
|
||||||
|
@ -536,7 +536,7 @@ NSTiffWrite(TIFF* image, NSTiffInfo* info, char* data)
|
||||||
static int
|
static int
|
||||||
CheckAndCorrectColormap(NSTiffColormap* map)
|
CheckAndCorrectColormap(NSTiffColormap* map)
|
||||||
{
|
{
|
||||||
register int i;
|
register unsigned int i;
|
||||||
|
|
||||||
for (i = 0; i < map->size; i++)
|
for (i = 0; i < map->size; i++)
|
||||||
if ((map->red[i] > 255)||(map->green[i] > 255)||(map->blue[i] > 255))
|
if ((map->red[i] > 255)||(map->green[i] > 255)||(map->blue[i] > 255))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue