Skip to content

Commit 213b08f

Browse files
authored
Don't use null byte as except value
1 parent 221f20c commit 213b08f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/sas/sas.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ cdef struct Buffer:
2222
size_t length
2323

2424

25-
cdef inline uint8_t buf_get(Buffer buf, size_t offset) except? 0:
26-
assert offset < buf.length, f"Out of bounds read"
25+
cdef inline uint8_t buf_get(Buffer buf, size_t offset) except? 255:
26+
assert offset < buf.length, "Out of bounds read"
2727
return buf.data[offset]
2828

2929

0 commit comments

Comments
 (0)