From 82478ffc7db2e3f07ee89b91e40647bb679912cd Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 2 Oct 2008 20:57:28 +0000 Subject: 2008-10-02 Joel Sherrill * sp09/screen01.c, sp09/screen12.c, sp25/system.h, sp25/task1.c, sp28/init.c, sp39/init.c, sp41/init.c, spfatal01/testcase.h, spfatal08/testcase.h: Change size_t to ssize_t on all Heap, Workspace and Region calls. On 16-bit architectures, size_t can be 16-bits which would limit sizes to 64K. Also address constants which overflowed on 16-bit integer targets. --- testsuites/sptests/sp39/init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testsuites/sptests/sp39/init.c') diff --git a/testsuites/sptests/sp39/init.c b/testsuites/sptests/sp39/init.c index 16efd7fe01..570d6c3f42 100644 --- a/testsuites/sptests/sp39/init.c +++ b/testsuites/sptests/sp39/init.c @@ -70,7 +70,7 @@ rtems_task Init( rtems_event_set out; int i; int max; - int iterations = 0; + uint32_t iterations = 0; puts( "\n\n*** TEST 39 ***" ); @@ -116,7 +116,7 @@ rtems_task Init( max += 2; /* with our clock tick, this is about 30 seconds */ - if ( ++iterations >= 4 * 1000 * 30) + if ( ++iterations >= 4L * 1000L * 30L) break; } @@ -150,7 +150,7 @@ rtems_task Init( max += 2; /* with our clock tick, this is about 30 seconds */ - if ( ++iterations >= 4 * 1000 * 30) + if ( ++iterations >= 4L * 1000L * 30L) break; } @@ -183,7 +183,7 @@ rtems_task Init( max = 0; /* with our clock tick, this is about 30 seconds */ - if ( ++iterations >= 4 * 1000 * 30) + if ( ++iterations >= 4L * 1000L * 30L) break; } -- cgit v1.2.3