Use cast to larger type for string formatting to allow compilation on Solaris

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@38459 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2015-04-17 17:52:51 +00:00
parent c2e600fc22
commit c7651517ef
4 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2015-04-17 Riccardo Mottola <rm@gnu.org>
* Palettes/3Containers/GormTabViewAttributesInspector.m
* Palettes/3Containers/GormBrowserAttributesInspector.m
* GormCore/GormFilePrefsManager.m
Use cast to larger type for string formatting to allow compilation on Solaris.
2015-03-02 00:04-EST Gregory John Casamento <greg.casamento@gmail.com>
* GormObjCHeaderParser/NSScanner+OCHeaderParser.m

View file

@ -321,7 +321,7 @@ objectValueForTableColumn: (NSTableColumn *)aTableColumn
if([[aTableColumn identifier] isEqual: @"item"])
{
obj = [NSString stringWithFormat: @"#%"PRIiPTR,rowIndex+1];
obj = [NSString stringWithFormat: @"#%ld",(long int)rowIndex+1];
}
else if([[aTableColumn identifier] isEqual: @"description"])
{

View file

@ -1,7 +1,7 @@
/*
GormBrowserAttributesInspector.m
Copyright (C) 2001-2005 Free Software Foundation, Inc.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Author: Adam Fedor <fedor@gnu.org>
Laurent Julliard <laurent@julliard-online.org>
@ -124,8 +124,8 @@
[NSString stringWithFormat:@"%f",
[object minColumnWidth]]];
[maxVisibleColumnsField setStringValue:
[NSString stringWithFormat:@"%"PRIiPTR,
[object maxVisibleColumns]]];
[NSString stringWithFormat:@"%ld",
(long int)[object maxVisibleColumns]]];
[super revert:sender];
}

View file

@ -1,7 +1,7 @@
/*
GormTabViewAttributesInspector.m
Copyright (C) 2001 Free Software Foundation, Inc.
Copyright (C) 2001-2015 Free Software Foundation, Inc.
Author: Laurent Julliard <laurent@julliard-online.org>
Author: Gregory John Casamento <greg_casamento@yahoo.com>
@ -120,7 +120,7 @@
if (newNumber <= 0)
{
[numberOfItemsField setStringValue:[NSString stringWithFormat:@"%"PRIiPTR,[object numberOfTabViewItems]]];
[numberOfItemsField setStringValue:[NSString stringWithFormat:@"%ld",(long int)[object numberOfTabViewItems]]];
return;
}
if ( newNumber > [object numberOfTabViewItems] )