Permalink
Browse files

Fixed numeric format specifiers.

  • Loading branch information...
1 parent 1eff6ae commit e572bb59e1e3aeb0025edfd7ad554da2383b2489 @mugginsoft committed Jan 20, 2012
Showing with 14 additions and 14 deletions.
  1. +14 −14 FScriptFramework/TestFS.m
View
28 FScriptFramework/TestFS.m
@@ -365,7 +365,7 @@ + (NSInteger *)pointer
{ NSLog(@"TestFS return %p", &p); return &p;}
+ (NSInteger *)pointerWith:object with:(NSInteger)i
-{ NSLog(@"object received: %@, int received:%d . TestFS return %p",object, i, &p); return &p;}
+{ NSLog(@"object received: %@, int received:%ld . TestFS return %p",object, i, &p); return &p;}
+ (void) setPValue:(NSInteger)new
{ p = new; }
@@ -375,7 +375,7 @@ + (NSInteger)pValue {return p;}
+ (void)setPointer:(NSInteger *)p
{
NSLog(@"setPointer: received pointer to %p", p);
- NSLog(@"%d",*p);
+ NSLog(@"%ld",*p);
}
+ (FSPointer *)fsPointer
@@ -1195,18 +1195,18 @@ + (NSInteger)iii
// calculate the sizes of C-Primitives
int i = 1;
NSLog(@"Primitive sizes:");
- NSLog(@"%d The size of a char is: %d.", i++, sizeof(char));
- NSLog(@"%d The size of short is: %d.", i++, sizeof(short));
- NSLog(@"%d The size of int is: %d.", i++, sizeof(int));
- NSLog(@"%d The size of long is: %d.", i++, sizeof(long));
- NSLog(@"%d The size of long long is: %d.", i++, sizeof(long long));
- NSLog(@"%d The size of a unsigned char is: %d.", i++, sizeof(unsigned char));
- NSLog(@"%d The size of unsigned short is: %d.", i++, sizeof(unsigned short));
- NSLog(@"%d The size of unsigned int is: %d.", i++, sizeof(unsigned int));
- NSLog(@"%d The size of unsigned long is: %d.", i++, sizeof(unsigned long));
- NSLog(@"%d The size of unsigned long long is: %d.", i++, sizeof(unsigned long long));
- NSLog(@"%d The size of a float is: %d.", i++, sizeof(float));
- NSLog(@"%d The size of a double is %d.", i++, sizeof(double));
+ NSLog(@"%d The size of a char is: %lu.", i++, sizeof(char));
+ NSLog(@"%d The size of short is: %lu.", i++, sizeof(short));
+ NSLog(@"%d The size of int is: %lu.", i++, sizeof(int));
+ NSLog(@"%d The size of long is: %lu.", i++, sizeof(long));
+ NSLog(@"%d The size of long long is: %lu.", i++, sizeof(long long));
+ NSLog(@"%d The size of a unsigned char is: %lu.", i++, sizeof(unsigned char));
+ NSLog(@"%d The size of unsigned short is: %lu.", i++, sizeof(unsigned short));
+ NSLog(@"%d The size of unsigned int is: %lu.", i++, sizeof(unsigned int));
+ NSLog(@"%d The size of unsigned long is: %lu.", i++, sizeof(unsigned long));
+ NSLog(@"%d The size of unsigned long long is: %lu.", i++, sizeof(unsigned long long));
+ NSLog(@"%d The size of a float is: %lu.", i++, sizeof(float));
+ NSLog(@"%d The size of a double is %lu.", i++, sizeof(double));
return [NSString stringWithUTF8String:@encode(NSRange)];
}

0 comments on commit e572bb5

Please sign in to comment.