summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp04/tswitch.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/sp04/tswitch.c')
-rw-r--r--testsuites/sptests/sp04/tswitch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/sptests/sp04/tswitch.c b/testsuites/sptests/sp04/tswitch.c
index a573adbb1e..689dd623d3 100644
--- a/testsuites/sptests/sp04/tswitch.c
+++ b/testsuites/sptests/sp04/tswitch.c
@@ -35,7 +35,7 @@ rtems_extension Task_switch(
rtems_time_of_day time;
rtems_status_code status;
- index = task_number( heir->Object.id );
+ index = task_number( heir->Object.id ) - task_number( Task_id[1] ) + 1;
switch( index ) {
case 1: