aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/basetypes
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-03-29 20:03:14 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-03-29 20:03:14 -0700
commitc51a8a2b44e6934de9d45d74ddec4b70b00f1abb (patch)
treeeec1e324fa1384f054aa8f73a52ec11c1e9dc396 /src/core/basetypes
parent8adf0c2d16d1567ff830bf72460cb75deb7eb022 (diff)
Build for iOS.
Diffstat (limited to 'src/core/basetypes')
-rw-r--r--src/core/basetypes/MCData.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/basetypes/MCData.cc b/src/core/basetypes/MCData.cc
index f98f57c7..7ae63988 100644
--- a/src/core/basetypes/MCData.cc
+++ b/src/core/basetypes/MCData.cc
@@ -353,9 +353,9 @@ Data * Data::dataWithContentsOfFile(String * filename)
return NULL;
}
- buf = (char *) malloc(stat_buf.st_size);
+ buf = (char *) malloc((size_t) stat_buf.st_size);
- read_items = fread(buf, 1, stat_buf.st_size, f);
+ read_items = fread(buf, 1, (size_t) stat_buf.st_size, f);
if ((off_t) read_items != stat_buf.st_size) {
free(buf);
fclose(f);