Frameworks/AIUtilities Framework/Source/AIStringAdditions.m
branchadium-1.5.10.5
changeset 5997 d88e6711d0e0
parent 4897 5ea3bd51010d
--- a/Frameworks/AIUtilities Framework/Source/AIStringAdditions.m	Mon Nov 04 10:23:55 2019 +0000
+++ b/Frameworks/AIUtilities Framework/Source/AIStringAdditions.m	Thu Nov 14 16:22:42 2019 -0500
@@ -187,7 +187,7 @@
 
 	for (i = 0 ; i < length ; i++) {
 		/* Offset by the desired amount */
-		[newString appendFormat:@"%C",([self characterAtIndex:i] + offset)];
+		[newString appendFormat:@"%C",(unichar)([self characterAtIndex:i] + offset)];
 	}
 	
 	return newString;
@@ -756,7 +756,7 @@
 	//^-----^   <-Returns this substring. (Trailing zeroes are deleted.)
 	//42.000000
 	//^^        <-Returns this substring (everything before the decimal point) for a whole number.
-	NSString *format = numDigits ? [NSString stringWithFormat:@"%%.%uf", numDigits] : @"%f";
+	NSString *format = numDigits ? [NSString stringWithFormat:@"%%.%uf", (unsigned int)numDigits] : @"%f";
 	NSString *str = [NSString stringWithFormat:format, (double)f];
 	NSUInteger i = [str length];
 	while (i-- > 0) {