There was an error while loading. Please reload this page.
1 parent c7d02f5 commit 8098e03Copy full SHA for 8098e03
1 file changed
src/html_experimental.v
@@ -64,7 +64,7 @@ fn tos_attribute(attr &C.MD_ATTRIBUTE, mut wr strings.Builder) {
64
typ := unsafe { MD_TEXTTYPE(attr.substr_types[i]) }
65
off := unsafe { attr.substr_offsets[i] }
66
size := unsafe { attr.substr_offsets[i + 1] - off }
67
- text := unsafe { (attr.text + off).vstring_with_len(size) }
+ text := unsafe { (attr.text + off).vstring_with_len(int(size)) }
68
69
match typ {
70
.md_text_null_char {
0 commit comments