Skip to content

Commit c24634b

Browse files
committed
Fix minor signed/unsigned comparison warning
1 parent 8753812 commit c24634b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/unix_c/unix_termios_conversion.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static const struct {
132132
#endif
133133
};
134134

135-
#define NSPEEDS (sizeof(speedtable) / sizeof(speedtable[0]))
135+
#define NSPEEDS (int)(sizeof(speedtable) / sizeof(speedtable[0]))
136136

137137
static tcflag_t *choose_field(struct termios *terminal_status, long field)
138138
{

0 commit comments

Comments
 (0)