Skip to content

Commit 4cc02b8

Browse files
committed
changed forgotten AssertionError to Defect
1 parent 6529377 commit 4cc02b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

binaryparse.nim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ proc decodeType(t: NimNode, stream: NimNode, seenFields: seq[string]):
199199
kindPrefix = "float"
200200
size = typ[1..^1].parseBiggestInt
201201
if size != 32 and size != 64:
202-
raise newException(AssertionError,
203-
"Only 32 and 64 bit floats are supported")
202+
raise newException(Defect, "Only 32 and 64 bit floats are supported")
204203
of 's':
205204
if typ.len != 1:
206205
size = typ[1..^1].parseBiggestInt

0 commit comments

Comments
 (0)