[trunk] Fix a potential issue with truncation of pointers diff
[openjpeg.git] / libopenjpeg / bio.c
index ca79695d3ef2ad152053f026c0598fc6589361f1..9b6d694cdfd59e5380d9dc9ba9f30da6344d18e1 100644 (file)
@@ -125,7 +125,7 @@ void bio_destroy(opj_bio_t *bio) {
        }
 }
 
-int bio_numbytes(opj_bio_t *bio) {
+ptrdiff_t bio_numbytes(opj_bio_t *bio) {
        return (bio->bp - bio->start);
 }