Skip to content

Commit

Permalink
Eliminate warnings when using the Cython 3.0 release (#204).
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-tuininga committed Jul 20, 2023
1 parent 3e83ab1 commit af82cae
Show file tree
Hide file tree
Showing 3 changed files with 684 additions and 634 deletions.
10 changes: 6 additions & 4 deletions src/oracledb/impl/thin/buffer.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@
# (packet data or database object pickled data).
#------------------------------------------------------------------------------

DEF NUMBER_AS_TEXT_CHARS = 172
DEF NUMBER_MAX_DIGITS = 40
cdef enum:
NUMBER_AS_TEXT_CHARS = 172
NUMBER_MAX_DIGITS = 40

DEF BYTE_ORDER_LSB = 1
DEF BYTE_ORDER_MSB = 2
cdef enum:
BYTE_ORDER_LSB = 1
BYTE_ORDER_MSB = 2

cdef int MACHINE_BYTE_ORDER = BYTE_ORDER_MSB \
if sys.byteorder == "big" else BYTE_ORDER_LSB
Expand Down
Loading

0 comments on commit af82cae

Please sign in to comment.