summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp41
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-02 20:57:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-02 20:57:28 +0000
commit82478ffc7db2e3f07ee89b91e40647bb679912cd (patch)
treee7590fa0a880ab69cd97e8baef47a46fc3954f85 /testsuites/sptests/sp41
parent2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-82478ffc7db2e3f07ee89b91e40647bb679912cd.tar.bz2
2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'testsuites/sptests/sp41')
-rw-r--r--testsuites/sptests/sp41/init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/sptests/sp41/init.c b/testsuites/sptests/sp41/init.c
index b259be614f..db6c2c42a3 100644
--- a/testsuites/sptests/sp41/init.c
+++ b/testsuites/sptests/sp41/init.c
@@ -74,7 +74,7 @@ rtems_task Init(
rtems_id timer;
int i;
int max;
- int iterations = 0;
+ uint32_t iterations = 0;
puts( "\n\n*** TEST 41 ***" );
@@ -119,7 +119,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;
}
@@ -155,7 +155,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;
}
@@ -188,7 +188,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;
}