Author: rmottola
Date: Wed May 28 09:02:41 2014
New Revision: 37916

URL: http://svn.gna.org/viewcvs/gnustep?rev=37916&view=rev
Log:
Explicitely cast NSIntegers to avoid warning and problems

Modified:
    apps/gorm/trunk/ChangeLog
    apps/gorm/trunk/GormCore/GormClassInspector.m
    apps/gorm/trunk/GormCore/GormClassManager.m
    apps/gorm/trunk/GormCore/GormFilePrefsManager.m
    apps/gorm/trunk/GormCore/GormInspectorsManager.m

Modified: apps/gorm/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gorm/trunk/ChangeLog?rev=37916&r1=37915&r2=37916&view=diff
==============================================================================
--- apps/gorm/trunk/ChangeLog   (original)
+++ apps/gorm/trunk/ChangeLog   Wed May 28 09:02:41 2014
@@ -1,3 +1,11 @@
+2014-05-28 Riccardo Mottola <r...@gnu.org>
+
+       * GormCore/GormClassInspector.m
+       * GormCore/GormClassManager.m
+       * GormCore/GormFilePrefsManager.m
+       * GormCore/GormInspectorsManager.m
+       Explicitely cast NSIntegers to avoid warning and problems.
+
 2014-05-27 03:26-EDT Gregory John Casamento <greg.casame...@gmail.com>
 
        * GormCore/GormInspectorsManager.m

Modified: apps/gorm/trunk/GormCore/GormClassInspector.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gorm/trunk/GormCore/GormClassInspector.m?rev=37916&r1=37915&r2=37916&view=diff
==============================================================================
--- apps/gorm/trunk/GormCore/GormClassInspector.m       (original)
+++ apps/gorm/trunk/GormCore/GormClassInspector.m       Wed May 28 09:02:41 2014
@@ -658,9 +658,9 @@
       actionsCount = [[classManager allActionsForClassNamed: currentClass] 
count];
       
       item = [tabView tabViewItemAtIndex: 1]; // actions;
-      [item setLabel: [NSString stringWithFormat: @"Actions 
(%ld)",actionsCount]];
+      [item setLabel: [NSString stringWithFormat: @"Actions 
(%ld)",(long)actionsCount]];
       item = [tabView tabViewItemAtIndex: 0]; // outlets;
-      [item setLabel: [NSString stringWithFormat: @"Outlets 
(%ld)",outletsCount]];
+      [item setLabel: [NSString stringWithFormat: @"Outlets 
(%ld)",(long)outletsCount]];
       [tabView setNeedsDisplay: YES];
       
       [self _refreshView];

Modified: apps/gorm/trunk/GormCore/GormClassManager.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gorm/trunk/GormCore/GormClassManager.m?rev=37916&r1=37915&r2=37916&view=diff
==============================================================================
--- apps/gorm/trunk/GormCore/GormClassManager.m (original)
+++ apps/gorm/trunk/GormCore/GormClassManager.m Wed May 28 09:02:41 2014
@@ -175,7 +175,7 @@
 
   while([classInformation objectForKey: search])
     {
-      search = [name stringByAppendingString: [NSString stringWithFormat: 
@"%ld",i++]];
+      search = [name stringByAppendingString: [NSString stringWithFormat: 
@"%ld",(long)i++]];
     }
 
   return search;
@@ -224,7 +224,7 @@
 
   while ([combined containsObject: search])
     {
-      new = [newAction stringByAppendingFormat: @"%ld", i++];
+      new = [newAction stringByAppendingFormat: @"%ld", (long)i++];
       search = [new stringByAppendingString: @":"];
     }
 
@@ -241,7 +241,7 @@
 
   while ([combined containsObject: new])
     {
-      new = [newOutlet stringByAppendingFormat: @"%ld", i++];
+      new = [newOutlet stringByAppendingFormat: @"%ld", (long)i++];
     }
 
   [self addOutlet: new forClassNamed: name];

Modified: apps/gorm/trunk/GormCore/GormFilePrefsManager.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gorm/trunk/GormCore/GormFilePrefsManager.m?rev=37916&r1=37915&r2=37916&view=diff
==============================================================================
--- apps/gorm/trunk/GormCore/GormFilePrefsManager.m     (original)
+++ apps/gorm/trunk/GormCore/GormFilePrefsManager.m     Wed May 28 09:02:41 2014
@@ -56,7 +56,7 @@
   v -= (bit8 * min);
   pch = v;
   
-  return [NSString stringWithFormat: @"%ld.%ld.%ld / %ld",maj,min,pch,version];
+  return [NSString stringWithFormat: @"%ld.%ld.%ld / 
%ld",(long)maj,(long)min,(long)pch,(long)version];
 }
 
 
@@ -109,7 +109,7 @@
       Class cls = NSClassFromString(className);
       NSDictionary *info = [currentProfile objectForKey: className];
       NSInteger v = [[info objectForKey: @"version"] intValue];
-      NSDebugLog(@"Setting version %ld for class %@",v,className);
+      NSDebugLog(@"Setting version %ld for class %@",(long)v,className);
       [cls setVersion: v];
     }
 }
@@ -127,7 +127,7 @@
       Class cls = NSClassFromString(className);
       NSDictionary *info = [latestVersion objectForKey: className];
       NSInteger v = [[info objectForKey: @"version"] intValue];
-      NSDebugLog(@"Setting version %ld for class %@",v,className);
+      NSDebugLog(@"Setting version %ld for class %@",(long)v,className);
       [cls setVersion: v];
     }
 }

Modified: apps/gorm/trunk/GormCore/GormInspectorsManager.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/gorm/trunk/GormCore/GormInspectorsManager.m?rev=37916&r1=37915&r2=37916&view=diff
==============================================================================
--- apps/gorm/trunk/GormCore/GormInspectorsManager.m    (original)
+++ apps/gorm/trunk/GormCore/GormInspectorsManager.m    Wed May 28 09:02:41 2014
@@ -262,7 +262,7 @@
       item = (NSMenuItem *)[popup itemAtIndex: index];
       [item setTarget: self];
       [item setAction: @selector(setCurrentInspector:)];
-      [item setKeyEquivalent: [NSString stringWithFormat: @"%ld",tag]];
+      [item setKeyEquivalent: [NSString stringWithFormat: @"%ld",(long)tag]];
       [item setTag: tag];
       index++;
     }


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

Reply via email to