Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
ceae7711 by Alexandre Janniaux at 2024-05-23T09:09:48+00:00
access: dtv: fix compilation error on enumerated type

    In file included from ../../modules/access/dtv/access.c:27:
    ../../modules/access/dtv/access.c: In function ‘GetSingleDelivery’:
    ../../modules/access/dtv/access.c:922:21: error: argument 1 in call to 
function ‘__builtin_stdc_trailing_zeros’ has enumerated type
      922 |         return 1 << stdc_trailing_zeros(d);
          |                     ^~~~~~~~~~~~~~~~~~~
    ../../modules/access/dtv/access.c:923:1: warning: control reaches end of 
non-void function [-Wreturn-type]
      923 | }
          | ^

- - - - -


1 changed file:

- modules/access/dtv/access.c


Changes:

=====================================
modules/access/dtv/access.c
=====================================
@@ -919,7 +919,7 @@ static inline dtv_delivery_t GetSingleDelivery( 
dtv_delivery_t d )
     if( d == 0 )
         return DTV_DELIVERY_NONE;
     else
-        return 1 << stdc_trailing_zeros(d);
+        return 1 << stdc_trailing_zeros((unsigned)d);
 }
 
 /** Determines which delivery system to use. */



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/ceae7711b649738f06188f906b7782258222c090

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/ceae7711b649738f06188f906b7782258222c090
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to