aboutsummaryrefslogtreecommitdiffstats
path: root/android/utils/mapfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'android/utils/mapfile.h')
-rw-r--r--android/utils/mapfile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/utils/mapfile.h b/android/utils/mapfile.h
index c125337..18f8845 100644
--- a/android/utils/mapfile.h
+++ b/android/utils/mapfile.h
@@ -39,7 +39,7 @@ typedef struct MapFile MapFile;
static inline int
mapfile_is_valid(MapFile* handle)
{
- return (int)handle != -1;
+ return handle != (void*)(ptrdiff_t)-1;
}
/* Opens file in selected mode.