Skip to content

Commit 95cb94c

Browse files
committed
Fix yet another compiler warning with assertion on.
1 parent ff22bd9 commit 95cb94c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flisp/julia_extensions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ void jl_charmap_init(fl_context_t *fl_ctx)
169169
directly to pointer keys works because pointers are at
170170
least 32 bits on all Julia-supported systems, and because
171171
we never map anything to U+0001 (since HT_NOTFOUND is (void*)1). */
172-
assert((void*)charmap[i][1] != HT_NOTFOUND);
172+
assert((void*)(uintptr_t)charmap[i][1] != HT_NOTFOUND);
173173
wcharhash_put_r(h, (void*)((uintptr_t)charmap[i][0]),
174174
(void*)((uintptr_t)charmap[i][1]), (void*)fl_ctx);
175175
}

0 commit comments

Comments
 (0)