Skip to content

Commit 8098e03

Browse files
authored
fix fn call arg u32 as int (#22)
1 parent c7d02f5 commit 8098e03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/html_experimental.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn tos_attribute(attr &C.MD_ATTRIBUTE, mut wr strings.Builder) {
6464
typ := unsafe { MD_TEXTTYPE(attr.substr_types[i]) }
6565
off := unsafe { attr.substr_offsets[i] }
6666
size := unsafe { attr.substr_offsets[i + 1] - off }
67-
text := unsafe { (attr.text + off).vstring_with_len(size) }
67+
text := unsafe { (attr.text + off).vstring_with_len(int(size)) }
6868

6969
match typ {
7070
.md_text_null_char {

0 commit comments

Comments
 (0)