Fix comparison warning on STM32L4 devices

Cast the pointer used in l4_retarget to uint32_t before comparing it
to fix the warning:
"comparison between pointer and integer"
pull/7950/head
Russ Butler 2018-09-06 16:07:03 +01:00
parent e2d003a420
commit e084865e8e
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ void *__wrap__sbrk(int incr)
uint32_t heap_ind_old = heap_ind;
uint32_t heap_ind_new = heap_ind_old + incr;
if (heap_ind_new > &__mbed_krbs_start) {
if (heap_ind_new > (uint32_t)&__mbed_krbs_start) {
errno = ENOMEM;
return (void *) - 1;
}