mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 19:25:39 +08:00
Pass UINTPTR_MAX instead of 0xffffffff to _Heap_Allocate for 16bit compliance.
This commit is contained in:
@@ -33,7 +33,7 @@ void test_case_one(void)
|
||||
assert( heap_size );
|
||||
|
||||
puts( "Init - _Heap_Allocate - too large size (overflow)- not OK");
|
||||
ptr1 = _Heap_Allocate( &Heap, 0xffffffff );
|
||||
ptr1 = _Heap_Allocate( &Heap, UINTPTR_MAX );
|
||||
assert( !ptr1 );
|
||||
|
||||
puts( "Init - _Heap_Allocate_aligned - OK");
|
||||
|
||||
Reference in New Issue
Block a user