Skip to content

Commit

Permalink
fix cdef extern
Browse files Browse the repository at this point in the history
  • Loading branch information
kosak committed Sep 22, 2024
1 parent bcb33b9 commit fa428f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/client-ticking/src/pydeephaven_ticking/_core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ cdef class ColumnSource:
# fill_chunk helper method for LocalDate. In this case we shamelessly treat the Python timestamp
# type as an int64, and then further shamelessly pretend that it's a Deephaven LocalDate type.
cdef _fill_localdate_chunk(self, rows: RowSequence, int64_t[::1] dest_data, CGenericChunk[bool] *null_flags_ptr):
cdef extern from *:
cdef extern from "<type_traits>":
"""
static_assert(deephaven::dhcore::LocalDate::IsBlittableToInt64());
"""
Expand All @@ -361,7 +361,7 @@ cdef class ColumnSource:
# fill_chunk helper method for LocalTime. In this case we shamelessly treat the Python timestamp
# type as an int64, and then further shamelessly pretend that it's a Deephaven LocalTime type.
cdef _fill_localtime_chunk(self, rows: RowSequence, int64_t[::1] dest_data, CGenericChunk[bool] *null_flags_ptr):
cdef extern from *:
cdef extern from "<type_traits>":
"""
static_assert(deephaven::dhcore::LocalTime::IsBlittableToInt64());
"""
Expand Down

0 comments on commit fa428f8

Please sign in to comment.