Skip to content

Commit bc76435

Browse files
committed
Fix compiler warning: differ in signedness
Fix #44 syscalls_stm32.c:118:20: warning: pointer targets in passing argument 1 of 'uart_debug_write' differ in signedness [-Wpointer-sign] uart_debug_write(ptr, len); Signed-off-by: Frederic.Pillon <[email protected]>
1 parent c8c6e43 commit bc76435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/syscalls_stm32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ extern int _read(UNUSED(int file), UNUSED(char *ptr), UNUSED(int len) )
115115

116116
extern int _write( UNUSED(int file), char *ptr, int len )
117117
{
118-
uart_debug_write(ptr, len);
118+
uart_debug_write((uint8_t *)ptr, len);
119119

120120
return len ;
121121
}

0 commit comments

Comments
 (0)