Skip to content

Commit

Permalink
fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Jan 15, 2024
1 parent 8de327e commit a9b88e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/nanoarrow/_lib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ cdef class CBufferView:
if format_const != NULL:
snprintf(self._format, sizeof(self._format), "%s", format_const)
else:
snprintf(self._format, sizeof(self._format), "%ds", self._element_size_bits // 8)
snprintf(self._format, sizeof(self._format), "%ds", <int>self._element_size_bits // 8)

def __getbuffer__(self, Py_buffer *buffer, int flags):
if self._device.device_type != ARROW_DEVICE_CPU:
Expand Down

0 comments on commit a9b88e0

Please sign in to comment.