fix #19862; make widestrs consistent between refc and orc (#19874) [backport]

fix #19862; make widestrs consistent in refc and orc
This commit is contained in:
flywind 2022-06-09 22:51:17 +08:00 • committed by GitHub
commit 1972005439
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -224,3 +224,6 @@ when defined(nimv2):
proc `$`*(s: WideCStringObj): string =
$(s.data)
proc len*(w: WideCStringObj): int {.inline.} =
len(w.data)