Skip to content

Commit 15f71b9

Browse files
author
Jameson Ernst
committed
Fix isize/usize literal suffixes
1 parent 00dace8 commit 15f71b9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

sdl2-sys/src/audio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub struct SDL_AudioCVT {
5656
pub len_cvt: c_int,
5757
pub len_mult: c_int,
5858
pub len_ratio: c_double,
59-
filters: [SDL_AudioFilter; 10u],
59+
filters: [SDL_AudioFilter; 10us],
6060
filter_index: c_int,
6161
}
6262
pub type SDL_AudioDeviceID = uint32_t;

sdl2-sys/src/controller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub struct SDL_GameControllerButtonBind {
2323
#[derive(Copy, Clone)]
2424
#[repr(C)]
2525
pub struct SDL_GameControllerButtonBindData {
26-
data: [c_uchar; 8u],
26+
data: [c_uchar; 8us],
2727
}
2828

2929
#[allow(dead_code)]

sdl2-sys/src/event.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub struct SDL_TextEditingEvent {
100100
pub _type: uint32_t,
101101
pub timestamp: uint32_t,
102102
pub windowID: uint32_t,
103-
pub text: [c_char; 32u],
103+
pub text: [c_char; 32us],
104104
pub start: int32_t,
105105
pub length: int32_t,
106106
}
@@ -111,7 +111,7 @@ pub struct SDL_TextInputEvent {
111111
pub _type: uint32_t,
112112
pub timestamp: uint32_t,
113113
pub windowID: uint32_t,
114-
pub text: [c_char; 32u],
114+
pub text: [c_char; 32us],
115115
}
116116

117117
#[derive(Copy, Clone)]
@@ -333,7 +333,7 @@ pub struct SDL_SysWMEvent {
333333
#[allow(missing_copy_implementations)]
334334
#[repr(C)]
335335
pub struct SDL_Event {
336-
pub data: [uint8_t; 56u],
336+
pub data: [uint8_t; 56us],
337337
}
338338

339339
impl SDL_Event {

sdl2-sys/src/haptic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub struct SDL_HapticCustom {
126126
#[allow(missing_copy_implementations)]
127127
#[repr(C)]
128128
pub struct SDL_HapticEffect {
129-
pub data: [uint8_t; 72u],
129+
pub data: [uint8_t; 72us],
130130
}
131131

132132
impl SDL_HapticEffect {

sdl2-sys/src/joystick.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub type SDL_Joystick = c_void;
88
#[derive(Copy, Clone)]
99
#[repr(C)]
1010
pub struct SDL_JoystickGUID {
11-
pub data: [uint8_t; 16u],
11+
pub data: [uint8_t; 16us],
1212
}
1313

1414
extern "C" {

0 commit comments

Comments
 (0)