Skip to content

Commit

Permalink
Fixed pencil obtain from C
Browse files Browse the repository at this point in the history
  • Loading branch information
ShatrovOA committed Jan 28, 2025
1 parent 52e50b9 commit a63868a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/interfaces/api/c/dtfft_api_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ dtfft_get_error_string(const dtfft_error_code_t error_code)

dtfft_error_code_t
dtfft_get_pencil(dtfft_plan_t plan, int8_t dim, dtfft_pencil_t *pencil) {
return dtfft_get_pencil_c(get_plan_handle(plan), &dim, (void*)pencil);
return (dtfft_error_code_t)dtfft_get_pencil_c(get_plan_handle(plan), &dim, (void*)pencil);
}

#ifdef DTFFT_WITH_CUDA
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/api/include/dtfft_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ dtfft_get_error_string_c(const int32_t*, char*, size_t*);

extern
int32_t
dtfft_get_pencil_c(const void*, int8_t*, void **);
dtfft_get_pencil_c(const void*, int8_t*, void *);

#ifdef DTFFT_WITH_CUDA

Expand Down

0 comments on commit a63868a

Please sign in to comment.