Index: src/OFData.m ================================================================== --- src/OFData.m +++ src/OFData.m @@ -207,27 +207,27 @@ if (sizeof(of_offset_t) > sizeof(size_t) && size > (of_offset_t)SIZE_MAX) @throw [OFOutOfRangeException exception]; - buffer = malloc(size); + buffer = malloc((size_t)size); if (buffer == NULL) @throw [OFOutOfMemoryException - exceptionWithRequestedSize: size]; + exceptionWithRequestedSize: (size_t)size]; @try { OFFile *file = [[OFFile alloc] initWithPath: path mode: @"r"]; @try { [file readIntoBuffer: buffer - exactLength: size]; + exactLength: (size_t)size]; } @finally { [file release]; } self = [self initWithItemsNoCopy: buffer - count: size + count: (size_t)size freeWhenDone: true]; } @catch (id e) { free(buffer); @throw e; }