Skip to content

Commit

Permalink
Mac compatibility (#416)
Browse files Browse the repository at this point in the history
Co-authored-by: Hang Zhang <[email protected]>
  • Loading branch information
zhanghang1989 and Hang Zhang authored Jun 2, 2024
1 parent c959dab commit 96e71b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoding/lib/cpu/operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ py::array_t<float> apply_transform(int H, int W, int C, py::array_t<float> img,
auto ctm_buf = ctm.request();

// printf("H: %d, W: %d, C: %d\n", H, W, C);
py::array_t<float> result{(unsigned long)img_buf.size};
py::array_t<float> result{static_cast<ssize_t>(img_buf.size)};
auto res_buf = result.request();

float *img_ptr = (float *)img_buf.ptr;
Expand Down

0 comments on commit 96e71b0

Please sign in to comment.