aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPResultPlus.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-08-26 21:18:28 +0000
committerstuconnolly <stuart02@gmail.com>2009-08-26 21:18:28 +0000
commit63c47d26eeed7e2602e0925cae8e7386963ce695 (patch)
tree99529d48c972af8348f5478930a4116e0cc608b0 /Frameworks/MCPKit/MCPFoundationKit/MCPResultPlus.m
parent082332ed69b7cfb2d11d1d45b848cb1fc393b3ca (diff)
downloadsequelpro-63c47d26eeed7e2602e0925cae8e7386963ce695.tar.gz
sequelpro-63c47d26eeed7e2602e0925cae8e7386963ce695.tar.bz2
sequelpro-63c47d26eeed7e2602e0925cae8e7386963ce695.zip
Make the MCPkit framework truly 64 bit compatible by using the appropriate data types.
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPResultPlus.m')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPResultPlus.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPResultPlus.m b/Frameworks/MCPKit/MCPFoundationKit/MCPResultPlus.m
index 53b1846d..c171dc7f 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPResultPlus.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPResultPlus.m
@@ -40,7 +40,7 @@
* The index 0 of the returned array always correspond to the first row (ie: returned NSArray is indexed
* by row number), the read position is restored after to it's initial position after the read.
*/
-- (NSArray *)fetchColAtIndex:(unsigned int)col
+- (NSArray *)fetchColAtIndex:(NSUInteger)col
{
NSMutableArray *theCol = [NSMutableArray arrayWithCapacity:[self numOfRows]];
MYSQL_ROW_OFFSET thePosition;
@@ -52,7 +52,7 @@
}
if (col >= mNumOfFields) {
// Bad column number
- NSLog (@"The index : %d is not within the range 0 - %d\n", (long)col, (long)mNumOfFields);
+ NSLog (@"The index : %ld is not within the range 0 - %ld\n", (long)col, (long)mNumOfFields);
return nil;
}
@@ -78,7 +78,7 @@
*/
- (NSArray *)fetchColWithName:(NSString *)colName
{
- unsigned int theCol;
+ NSUInteger theCol;
if (mResult == NULL) {
// If there is no results, returns nil.
@@ -117,7 +117,7 @@
{
id theTable, theVect;
MYSQL_ROW_OFFSET thePosition;
- unsigned int i;
+ NSUInteger i;
if (mResult == NULL) {
// If there is no results, returns nil.
@@ -175,7 +175,7 @@
theTable = [NSDictionary dictionaryWithDictionary:theTable];
break;
default :
- NSLog (@"Unknown MCPReturnType : %d; return nil\n", (int)type);
+ NSLog (@"Unknown MCPReturnType : %ld; return nil\n", (NSInteger)type);
theTable = nil;
break;
}