@@ -422,7 +422,7 @@ void qarray_destroy(qarray *a) { /*{{{ */
422422 qthread_incr (
423423 & chunk_distribution_tracker [qarray_internal_segment_shep_read (
424424 a , segmenthead )],
425- -1 );
425+ ( aligned_t ) - 1 );
426426 }
427427 break ;
428428 }
@@ -435,14 +435,14 @@ void qarray_destroy(qarray *a) { /*{{{ */
435435 for (segment = 0 ; segment < segment_count ; segment ++ ) {
436436 qthread_incr (& chunk_distribution_tracker [qarray_internal_shepof_segidx (
437437 a , segment )],
438- -1 );
438+ ( aligned_t ) - 1 );
439439 }
440440 break ;
441441 }
442442 case ALL_SAME :
443443 qthread_incr (& chunk_distribution_tracker [a -> dist_specific .dist_shep ],
444- -1 * (a -> count / a -> segment_size +
445- ((a -> count % a -> segment_size ) ? 1 : 0 )));
444+ (( aligned_t ) - 1 ) * (a -> count / a -> segment_size +
445+ ((a -> count % a -> segment_size ) ? 1 : 0 )));
446446 break ;
447447 }
448448#ifdef QTHREAD_HAVE_MEM_AFFINITY
@@ -1202,7 +1202,7 @@ void qarray_set_shepof(qarray *a,
12021202#endif /* ifdef QTHREAD_HAVE_MEM_AFFINITY */
12031203 qthread_incr (& chunk_distribution_tracker [shep ], segment_count );
12041204 qthread_incr (& chunk_distribution_tracker [a -> dist_specific .dist_shep ],
1205- -1 * segment_count );
1205+ (( aligned_t ) - 1 ) * segment_count );
12061206 a -> dist_specific .dist_shep = shep ;
12071207 }
12081208 return ;
@@ -1223,7 +1223,7 @@ void qarray_set_shepof(qarray *a,
12231223 }
12241224#endif /* ifdef QTHREAD_HAVE_MEM_AFFINITY */
12251225 qthread_incr (& chunk_distribution_tracker [shep ], 1 );
1226- qthread_incr (& chunk_distribution_tracker [cur_shep ], -1 );
1226+ qthread_incr (& chunk_distribution_tracker [cur_shep ], ( aligned_t ) - 1 );
12271227 qarray_internal_segment_shep_write (a , seghead , shep );
12281228 }
12291229 }
0 commit comments