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

index aae635e493702d7198ec70297e10c3162a200134..cbba50a4bf5b62773021d72c16e7fbf5af9fd103 100644 (file)
@@ -77,8 +77,8 @@ void kds_s2000w_image_type_check_is_jpeg_true_test()
        blobdata* image = malloc(sizeof(blobdata));
        image->data = malloc(sizeof(char) * 2);
        char* imagedata = (char*) image->data;
-       imagedata[0] = 0xff;
-       imagedata[1] = 0xd8;
+       imagedata[0] = (char) 0xff;
+       imagedata[1] = (char) 0xd8;
        image->size = 2;
 
        bool result = kds_s2000w_image_type_check_is_jpeg(image);