Skip to content

Commit

Permalink
fix fn call arg u32 as int
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Dec 4, 2024
1 parent c7d02f5 commit 6a67f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html_experimental.v
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn tos_attribute(attr &C.MD_ATTRIBUTE, mut wr strings.Builder) {
typ := unsafe { MD_TEXTTYPE(attr.substr_types[i]) }
off := unsafe { attr.substr_offsets[i] }
size := unsafe { attr.substr_offsets[i + 1] - off }
text := unsafe { (attr.text + off).vstring_with_len(size) }
text := unsafe { (attr.text + off).vstring_with_len(int(size)) }

match typ {
.md_text_null_char {
Expand Down

0 comments on commit 6a67f89

Please sign in to comment.