Skip to content

Commit b0f1530

Browse files
committed
edge cases :(
1 parent de5fe52 commit b0f1530

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/pointers/c_pointer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ def dereference(self) -> T:
142142

143143
if (ctype is ctypes.c_char_p) and (self._alt):
144144
res = ctypes.c_char_p(self.ensure()).value
145-
assert res
146145
return res # type: ignore
147146

148147
ptr = (

src/pointers/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
5959
segv = any(
6060
{
6161
msg.startswith("segment violation"),
62-
msg.startswith("access violation"),
62+
msg.startswith("exception: access violation"),
6363
}
6464
)
6565

0 commit comments

Comments
 (0)