From 9d1665cd6f2560243fd16d4ea769fe2282401c4c Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Thu, 9 Oct 2025 20:02:34 +0200 Subject: [PATCH] fix char set net test --- tests/kds_s2000w_net_tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); -- 2.47.3