Skip to content

Commit

Permalink
fix useless casts
Browse files Browse the repository at this point in the history
for -Werror, as it is a warning in newer gcc versions
  • Loading branch information
hcmh committed Jun 6, 2024
1 parent 3f3d188 commit e8dbc2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/noncart/nufft.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ static void nufft_apply_normal(const linop_data_t* _data, complex float* dst, co

for (int i = 0; i < ncycles; i++) {

if (data->conf.pcycle && (i != (int)data->cycle))
if (data->conf.pcycle && (i != data->cycle))
continue;

toeplitz_mult_lowmem(data, i, dst, src);
Expand Down
2 changes: 1 addition & 1 deletion src/num/fft.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ static void fft_apply(const operator_data_t* _plan, int N, void* args[N])

#pragma omp critical(cufft_create_plan_in_threads)
if (NULL == plan->cuplan)
((struct fft_plan_s*)plan)->cuplan = fft_cuda_plan(plan->D, plan->dims, plan->flags, plan->ostrs, plan->istrs, plan->backwards);
plan->cuplan = fft_cuda_plan(plan->D, plan->dims, plan->flags, plan->ostrs, plan->istrs, plan->backwards);
#endif
if (NULL == plan->cuplan)
error("Failed to plan a GPU FFT (too large?)\n");
Expand Down

0 comments on commit e8dbc2f

Please sign in to comment.