]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change int values for br
authorBastian Dehn <hhaalo@arcor.de>
Sun, 2 Mar 2025 17:25:55 +0000 (18:25 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 6 Mar 2025 20:44:56 +0000 (21:44 +0100)
src/kds_s2000w_handler_opts.c

index bc193953088c49c6afcc06bda7189ebb3896f801..5b7645b8bd91c61e5aa044b9a8376711862c566f 100644 (file)
@@ -525,11 +525,11 @@ void kds_s2000w_handler_opts_get_option(handler* h, uint32_t option, void* value
                        _kds_s2000w_handler_opts_write_string_value(value_object, value);
                        break;
                case 47:
-                       int* br_x = (int*) value;
+                       int32_t* br_x = (int32_t*) value;
                        *br_x = _kds_s2000w_handler_opts_inch_to_pixel(config, h->br->x);
                        break;
                case 48:
-                       int* br_y = (int*) value;
+                       int32_t* br_y = (int32_t*) value;
                        *br_y = _kds_s2000w_handler_opts_inch_to_pixel(config, h->br->y);
                        break;
                default:
@@ -768,11 +768,11 @@ void kds_s2000w_handler_opts_set_option(handler* h, uint32_t option, void* value
                        _kds_s2000w_handler_opts_write_string_value_to_json(value_object, value);
                        break;
                case 47:
-                       int* br_x = (int*) value;
+                       int32_t* br_x = (int32_t*) value;
                        *br_x = _kds_s2000w_handler_opts_pixel_to_inch(config, h->br->x);
                        break;
                case 48:
-                       int* br_y = (int*) value;
+                       int32_t* br_y = (int32_t*) value;
                        *br_y = _kds_s2000w_handler_opts_pixel_to_inch(config, h->br->y);
                        break;
                default: