aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/ds
diff options
context:
space:
mode:
authorRobin Watts2008-11-23 11:49:58 +0000
committerRobin Watts2008-11-23 11:49:58 +0000
commitf897def64d412db847b3087f6eaf4e59fdc61ea2 (patch)
tree18aadfeb0bdae39c19e77d6ad6fa12d7e162e10a /backends/fs/ds
parentfc507e98748681761e5d31bab8b4c13210b74a11 (diff)
downloadscummvm-rg350-f897def64d412db847b3087f6eaf4e59fdc61ea2.tar.gz
scummvm-rg350-f897def64d412db847b3087f6eaf4e59fdc61ea2.tar.bz2
scummvm-rg350-f897def64d412db847b3087f6eaf4e59fdc61ea2.zip
Eliminate some warnings from NDS specific code.
svn-id: r35157
Diffstat (limited to 'backends/fs/ds')
-rw-r--r--backends/fs/ds/ds-fs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/fs/ds/ds-fs.cpp b/backends/fs/ds/ds-fs.cpp
index 17a06f4229..dda176bbcc 100644
--- a/backends/fs/ds/ds-fs.cpp
+++ b/backends/fs/ds/ds-fs.cpp
@@ -567,7 +567,7 @@ size_t std_fread(const void* ptr, size_t size, size_t numItems, FILE* handle) {
return numItems;
} else {
// consolePrintf("Read past end of file: %d read out of %d\n", bytes / size, numItems);
- if (bytes != size * numItems) readPastEndOfFile = true;
+ if ((size_t)bytes != size * numItems) readPastEndOfFile = true;
return bytes / size;
}
return numItems;
@@ -588,7 +588,7 @@ size_t std_fread(const void* ptr, size_t size, size_t numItems, FILE* handle) {
return bytes / size;
}
- if (handle->pos + size * numItems > handle->size) {
+ if ((size_t)(handle->pos + size * numItems) > handle->size) {
numItems = (handle->size - handle->pos) / size;
if (numItems < 0) numItems = 0;
}