chaokunyang commented on code in PR #1885:
URL: https://github.com/apache/fury/pull/1885#discussion_r1922599341
##########
python/pyfury/_util.pyx:
##########
@@ -29,10 +29,13 @@ from libcpp cimport bool as c_bool
from pyfury.includes.libutil cimport(
CBuffer, AllocateBuffer, GetBit, SetBit, ClearBit, SetBitTo, CStatus,
StatusCode, utf16HasSurrogatePairs
)
+import os
cdef int32_t max_buffer_size = 2 ** 31 - 1
cdef int UTF16_LE = -1
+_WINDOWS = os.name == 'nt'
Review Comment:
```suggestion
cdef c_bool _WINDOWS = os.name == 'nt'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]