]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix char set net test
authorBastian Dehn <hhaalo@arcor.de>
Thu, 9 Oct 2025 18:02:34 +0000 (20:02 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 9 Oct 2025 18:02:34 +0000 (20:02 +0200)
tests/kds_s2000w_net_tests.c

index 87feef30296aec85fbb09934c6fb6cf48d15ca0d..3057387b04cbfff3dfd59062a7ab1d5316802da6 100644 (file)
@@ -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));