Skip to content

Commit 5fbc06b

Browse files
committedJan 12, 2018
more const'ness in Kahan step inline function
1 parent c777936 commit 5fbc06b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎kahan_summation.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static inline double kahan_sum_re_final(const kahan_re_t * acc){
5050
return( acc->kc + acc->ks );
5151
}
5252

53-
static inline void kahan_sum_cplx_step(const complex double in, kahan_cplx_t * acc){
53+
static inline void kahan_sum_cplx_step(const complex double in, kahan_cplx_t * const acc){
5454
acc->tr = in + acc->kc;
5555
acc->ts = acc->tr + acc->ks;
5656
acc->tt = acc->ts - acc->ks;

0 commit comments

Comments
 (0)
Please sign in to comment.