[libdvdnav-devel] [Git][videolan/libdvdread][master] ifo_read: fix warning on 64-bit conversion from 32-bit constant

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun Aug 10 19:45:22 UTC 2025



Jean-Baptiste Kempf pushed to branch master at VideoLAN / libdvdread


Commits:
c9c0477d by Steve Lhomme at 2025-08-10T19:42:21+00:00
ifo_read: fix warning on 64-bit conversion from 32-bit constant

- - - - -


1 changed file:

- src/ifo_read.c


Changes:

=====================================
src/ifo_read.c
=====================================
@@ -420,18 +420,18 @@ ifoOpen_fail:
 static void ifoSetBupFlag(dvd_reader_t *ctx, int title)
 {
     if(title > 63)
-        ctx->ifoBUPflags[0] |= 1 << (title - 64);
+        ctx->ifoBUPflags[0] |= UINT64_C(1) << (title - 64);
     else
-        ctx->ifoBUPflags[1] |= 1 << title;
+        ctx->ifoBUPflags[1] |= UINT64_C(1) << title;
 }
 
 static int ifoGetBupFlag(const dvd_reader_t *ctx, int title)
 {
     int bupflag;
     if(title > 63)
-        bupflag = !! (ctx->ifoBUPflags[0] & (1 << (title - 64)));
+        bupflag = !! (ctx->ifoBUPflags[0] & (UINT64_C(1) << (title - 64)));
     else
-        bupflag = !! (ctx->ifoBUPflags[1] & (1 << title));
+        bupflag = !! (ctx->ifoBUPflags[1] & (UINT64_C(1) << title));
     return bupflag;
 }
 



View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/c9c0477db0296efbbbafd6c5f69ed6b254fde073

-- 
View it on GitLab: https://code.videolan.org/videolan/libdvdread/-/commit/c9c0477db0296efbbbafd6c5f69ed6b254fde073
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the libdvdnav-devel mailing list