Skip to content

Commit

Permalink
libjpeg: fix rendering on 32-bit platforms
Browse files Browse the repository at this point in the history
Fixes SIZEOF_SIZE_T on 32-bit platforms that should be 4 instead of 8

Tested on Windows x86_32 and Android armv7
  • Loading branch information
joshtynjala committed Jan 7, 2025
1 parent 57cf88b commit 44dd331
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/lib/custom/jpeg/jconfigint.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#define VERSION "2.0.7"

/* The size of `size_t', as computed by sizeof. */
#if defined(RASPBERRYPI)
#define SIZEOF_SIZE_T 4
#else
#if (__WORDSIZE == 64) || defined(_WIN64)
#define SIZEOF_SIZE_T 8
#else
#define SIZEOF_SIZE_T 4
#endif

/* Define if your compiler has __builtin_ctzl() and sizeof(unsigned long) == sizeof(size_t). */
Expand Down

0 comments on commit 44dd331

Please sign in to comment.