Author: rmottola
Date: Fri Apr 17 19:52:51 2015
New Revision: 38459

URL: http://svn.gna.org/viewcvs/gnustep?rev=38459&view=rev
Log:
Use cast to larger type for string formatting to allow compilation on Solaris

Modified:
    apps/gorm/trunk/ChangeLog
    apps/gorm/trunk/GormCore/GormFilePrefsManager.m
    apps/gorm/trunk/Palettes/3Containers/GormBrowserAttributesInspector.m
    apps/gorm/trunk/Palettes/3Containers/GormTabViewAttributesInspector.m

Modified: apps/gorm/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gorm/trunk/ChangeLog?rev=38459&r1=38458&r2=38459&view=diff
==============================================================================
--- apps/gorm/trunk/ChangeLog   (original)
+++ apps/gorm/trunk/ChangeLog   Fri Apr 17 19:52:51 2015
@@ -1,3 +1,10 @@
+2015-04-17 Riccardo Mottola <r...@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.casame...@gmail.com>
 
        * GormObjCHeaderParser/NSScanner+OCHeaderParser.m

Modified: apps/gorm/trunk/GormCore/GormFilePrefsManager.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gorm/trunk/GormCore/GormFilePrefsManager.m?rev=38459&r1=38458&r2=38459&view=diff
==============================================================================
--- apps/gorm/trunk/GormCore/GormFilePrefsManager.m     (original)
+++ apps/gorm/trunk/GormCore/GormFilePrefsManager.m     Fri Apr 17 19:52:51 2015
@@ -321,7 +321,7 @@
 
   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"])
     {

Modified: apps/gorm/trunk/Palettes/3Containers/GormBrowserAttributesInspector.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gorm/trunk/Palettes/3Containers/GormBrowserAttributesInspector.m?rev=38459&r1=38458&r2=38459&view=diff
==============================================================================
--- apps/gorm/trunk/Palettes/3Containers/GormBrowserAttributesInspector.m       
(original)
+++ apps/gorm/trunk/Palettes/3Containers/GormBrowserAttributesInspector.m       
Fri Apr 17 19:52:51 2015
@@ -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 <fe...@gnu.org>
             Laurent Julliard <laur...@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];
 }

Modified: apps/gorm/trunk/Palettes/3Containers/GormTabViewAttributesInspector.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gorm/trunk/Palettes/3Containers/GormTabViewAttributesInspector.m?rev=38459&r1=38458&r2=38459&view=diff
==============================================================================
--- apps/gorm/trunk/Palettes/3Containers/GormTabViewAttributesInspector.m       
(original)
+++ apps/gorm/trunk/Palettes/3Containers/GormTabViewAttributesInspector.m       
Fri Apr 17 19:52:51 2015
@@ -1,7 +1,7 @@
 /*
   GormTabViewAttributesInspector.m
 
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001-2015 Free Software Foundation, Inc.
 
    Author:  Laurent Julliard <laur...@julliard-online.org>
    Author:  Gregory John Casamento <greg_casame...@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] ) 


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to