mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 00:47:56 +01:00
Fix imageviewer signed/unsigned char comparison
This commit is contained in:
1 parent
b4fd57e76d
commit
3faddde52d
1 file changed
+2
-2
@@ -131,7 +131,7 @@ load_image_type() {
|
|||||||
|
|
||||||
wuffs_base__status status;
|
wuffs_base__status status;
|
||||||
switch (g_src_buffer_array[0]) {
|
switch (g_src_buffer_array[0]) {
|
||||||
case '\x00':
|
case 0x00:
|
||||||
status = wuffs_wbmp__decoder__initialize(
|
status = wuffs_wbmp__decoder__initialize(
|
||||||
&g_potential_decoders.wbmp, sizeof g_potential_decoders.wbmp,
|
&g_potential_decoders.wbmp, sizeof g_potential_decoders.wbmp,
|
||||||
WUFFS_VERSION, WUFFS_INITIALIZE__DEFAULT_OPTIONS);
|
WUFFS_VERSION, WUFFS_INITIALIZE__DEFAULT_OPTIONS);
|
||||||
@@ -183,7 +183,7 @@ load_image_type() {
|
|||||||
&g_potential_decoders.nie);
|
&g_potential_decoders.nie);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '\x89':
|
case 0x89:
|
||||||
status = wuffs_png__decoder__initialize(
|
status = wuffs_png__decoder__initialize(
|
||||||
&g_potential_decoders.png, sizeof g_potential_decoders.png,
|
&g_potential_decoders.png, sizeof g_potential_decoders.png,
|
||||||
WUFFS_VERSION, WUFFS_INITIALIZE__DEFAULT_OPTIONS);
|
WUFFS_VERSION, WUFFS_INITIALIZE__DEFAULT_OPTIONS);
|
||||||
|
|||||||
Reference in new issue
Block a user