Skip to content

Commit 1c7839c

Browse files
Fotis Panagiotopoulosxiaoxiang781216
authored andcommitted
Fixed compiler warnings.
1 parent daf9e80 commit 1c7839c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nshlib/nsh_command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ int nsh_extmatch_count(FAR char *name, FAR int *matches, int namelen)
11601160
defined(CONFIG_READLINE_HAVE_EXTMATCH)
11611161
FAR const char *nsh_extmatch_getname(int index)
11621162
{
1163-
DEBUGASSERT(index > 0 && index <= NUM_CMDS);
1163+
DEBUGASSERT(index > 0 && index <= (int)NUM_CMDS);
11641164
return g_cmdmap[index].cmd;
11651165
}
11661166
#endif

nshlib/nsh_fsutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ int nsh_readfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
262262
{
263263
/* Successful read. Make sure that the buffer is null terminated */
264264

265-
DEBUGASSERT(nread <= remaining);
265+
DEBUGASSERT(nread <= (ssize_t)remaining);
266266
ntotal += nread;
267267
buffer[ntotal] = '\0';
268268

0 commit comments

Comments
 (0)