xiph / ogg

Reference implementation of the Ogg media container
BSD 3-Clause "New" or "Revised" License
345 stars 168 forks source link

Use %lu instead of %ld to fprintf unsigned longs. #43

Closed Quipyowert2 closed 5 years ago

Quipyowert2 commented 5 years ago

Cppcheck complains that bitwise.c is using %ld to fprintf unsigned longs in the array large. Instead, %lu should be used to printf/fprintf unsigned longs.

Cppcheck warning below: (warning) %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint]

rillian commented 5 years ago

Merged in f7dadaaf75634289f7ead64ed1802b627d761ee3. Thanks for the patch!