Gitweb links: ...log http://git.netsurf-browser.org/libnsgif.git/shortlog/c5096a31de6493c9d88d72bc339e50a45afd052d ...commit http://git.netsurf-browser.org/libnsgif.git/commit/c5096a31de6493c9d88d72bc339e50a45afd052d ...tree http://git.netsurf-browser.org/libnsgif.git/tree/c5096a31de6493c9d88d72bc339e50a45afd052d
The branch, master has been updated via c5096a31de6493c9d88d72bc339e50a45afd052d (commit) from b1775d81a7f681ce1e6dc4db4020081789995927 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commitdiff http://git.netsurf-browser.org/libnsgif.git/commit/?id=c5096a31de6493c9d88d72bc339e50a45afd052d commit c5096a31de6493c9d88d72bc339e50a45afd052d Author: Michael Drake <t...@netsurf-browser.org> Commit: Michael Drake <t...@netsurf-browser.org> Util: Improve host endian detection for older GCCs. Co-authored-by: John-Mark Bell <j...@netsurf-browser.org> diff --git a/src/gif.c b/src/gif.c index 6d10898..b37b517 100644 --- a/src/gif.c +++ b/src/gif.c @@ -1364,9 +1364,9 @@ void nsgif_destroy(nsgif_t *gif) */ static inline bool nsgif__host_is_little_endian(void) { - static const uint16_t test = 1; + const uint16_t test = 1; - return ((const uint8_t *) &test)[0] == 1; + return ((const uint8_t *) &test)[0]; } static struct nsgif_colour_layout nsgif__bitmap_fmt_to_colour_layout( ----------------------------------------------------------------------- Summary of changes: src/gif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gif.c b/src/gif.c index 6d10898..b37b517 100644 --- a/src/gif.c +++ b/src/gif.c @@ -1364,9 +1364,9 @@ void nsgif_destroy(nsgif_t *gif) */ static inline bool nsgif__host_is_little_endian(void) { - static const uint16_t test = 1; + const uint16_t test = 1; - return ((const uint8_t *) &test)[0] == 1; + return ((const uint8_t *) &test)[0]; } static struct nsgif_colour_layout nsgif__bitmap_fmt_to_colour_layout( -- NetSurf GIF Decoder _______________________________________________ netsurf-commits mailing list -- netsurf-commits@netsurf-browser.org To unsubscribe send an email to netsurf-commits-le...@netsurf-browser.org