summaryrefslogtreecommitdiff
path: root/src/schedule
diff options
context:
space:
mode:
Diffstat (limited to 'src/schedule')
-rw-r--r--src/schedule/ScheduleSorter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/schedule/ScheduleSorter.c b/src/schedule/ScheduleSorter.c
index 77523dde..edfb009c 100644
--- a/src/schedule/ScheduleSorter.c
+++ b/src/schedule/ScheduleSorter.c
@@ -190,9 +190,9 @@ int CCTKi_ScheduleAddRow(int size,
{
if(thisorders[column])
{
- if(array[row][column] && array[row][column] != thisorders[column]) retval--;
- array[row][column] = thisorders[column];
- array[column][row] = - thisorders[column];
+ if(array[row][column] && array[row][column] != (signed char)thisorders[column]) retval--;
+ array[row][column] = (signed char)( thisorders[column]);
+ array[column][row] = (signed char)( -thisorders[column]);
}
}