Skip to content

Commit ecf7e4e

Browse files
authored
Merge pull request #78 from mattyoung101/fix-enum-bitwise-warning
2 parents c97bd42 + a6339b0 commit ecf7e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/atomics_cobalt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ atomics_cobalt_device_version (dc_device_t *abstract, unsigned char data[], unsi
161161
// Send the command to the dive computer.
162162
unsigned char bRequest = 0x01;
163163
dc_usb_control_t control = {
164-
DC_USB_REQUEST_VENDOR | DC_USB_RECIPIENT_DEVICE | DC_USB_ENDPOINT_OUT, /* bmRequestType */
164+
(unsigned char) DC_USB_REQUEST_VENDOR | DC_USB_RECIPIENT_DEVICE | DC_USB_ENDPOINT_OUT, /* bmRequestType */
165165
bRequest, /* bRequest */
166166
0, /* wValue */
167167
0, /* wIndex */
@@ -229,7 +229,7 @@ atomics_cobalt_read_dive (dc_device_t *abstract, dc_buffer_t *buffer, int init,
229229
bRequest = init ? 0x09 : 0x0A;
230230

231231
dc_usb_control_t control = {
232-
DC_USB_REQUEST_VENDOR | DC_USB_RECIPIENT_DEVICE | DC_USB_ENDPOINT_OUT, /* bmRequestType */
232+
(unsigned char) DC_USB_REQUEST_VENDOR | DC_USB_RECIPIENT_DEVICE | DC_USB_ENDPOINT_OUT, /* bmRequestType */
233233
bRequest, /* bRequest */
234234
0, /* wValue */
235235
0, /* wIndex */

0 commit comments

Comments
 (0)