aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag/Aiff.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/tag/Aiff.cxx')
-rw-r--r--src/tag/Aiff.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tag/Aiff.cxx b/src/tag/Aiff.cxx
index 4135565f7..73e46e49f 100644
--- a/src/tag/Aiff.cxx
+++ b/src/tag/Aiff.cxx
@@ -23,7 +23,7 @@
#include "system/ByteOrder.hxx"
#include "Log.hxx"
-#include <glib.h>
+#include <limits>
#include <stdint.h>
#include <sys/types.h>
@@ -81,7 +81,7 @@ aiff_seek_id3(FILE *file)
return 0;
size = FromBE32(chunk.size);
- if (size > G_MAXINT32)
+ if (size > unsigned(std::numeric_limits<int>::max()))
/* too dangerous, bail out: possible integer
underflow when casting to off_t */
return 0;