From: Bastian Dehn Date: Thu, 9 Oct 2025 18:02:34 +0000 (+0200) Subject: fix char set net test X-Git-Tag: v1.1.10^2~19^2~4 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=9d1665cd6f2560243fd16d4ea769fe2282401c4c;p=sane-kds-s2000w-net.git fix char set net test --- diff --git a/tests/kds_s2000w_net_tests.c b/tests/kds_s2000w_net_tests.c index 87feef3..3057387 100644 --- a/tests/kds_s2000w_net_tests.c +++ b/tests/kds_s2000w_net_tests.c @@ -50,7 +50,7 @@ int setup(void** state) image_data[9] = 0x35; image_data[10] = 0x0a; for (uint32_t i = 11; i < 17; i++) { - image_data[i] = 0xff; + image_data[i] = (char) 0xff; } response_list[3] = NULL; *state = response_list; @@ -133,7 +133,7 @@ void sane_kds_s2000w_net_get_parameter_color_test() image_data[9] = 0x35; image_data[10] = 0x0a; for (uint32_t i = 11; i < 17; i++) { - image_data[i] = 0xff; + image_data[i] = (char) 0xff; } SANE_Parameters* params = malloc(sizeof(SANE_Parameters)); @@ -171,7 +171,7 @@ void sane_kds_s2000w_net_get_parameter_bw_test() image_data[5] = 0x31; image_data[6] = 0x0a; for (uint32_t i = 7; i < 17; i++) { - image_data[i] = 0xff; + image_data[i] = (char) 0xff; } SANE_Parameters* params = malloc(sizeof(SANE_Parameters));