Skip to content

Commit 1d2da0e

Browse files
committed
rm unnecessary assertion (only need for value, as in jl_charmap, not for key)
1 parent da3685c commit 1d2da0e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/flisp/julia_extensions.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,8 @@ int jl_op_suffix_char(uint32_t wc)
149149
size_t i, opsuffs_len = sizeof(opsuffs) / (sizeof(uint32_t));
150150
htable_t *h = htable_new(&jl_opsuffs, opsuffs_len);
151151
assert(sizeof(uint32_t) <= sizeof(void*));
152-
for (i = 0; i < opsuffs_len; ++i) {
153-
assert((void*)(uintptr_t)opsuffs[i] != HT_NOTFOUND);
152+
for (i = 0; i < opsuffs_len; ++i)
154153
wcharhash_put_r(h, (void*)((uintptr_t)opsuffs[i]), NULL, NULL);
155-
}
156154
}
157155
if (wc < 0xA1 || wc > 0x10ffff) return 0;
158156
utf8proc_category_t cat = utf8proc_category((utf8proc_int32_t) wc);

0 commit comments

Comments
 (0)