some more bugfixes for the integer promotion rules
This commit is contained in:
parent
a6ee0eb299
commit
95faae2c0a
4 changed files with 9 additions and 8 deletions
|
|
@ -368,7 +368,7 @@ when defined(windows):
|
|||
lpWideCharStr = cstring(result),
|
||||
cchWideChar = cint(result.len div 2),
|
||||
lpMultiByteStr = cstring(res),
|
||||
cbMultiByte = cap)
|
||||
cbMultiByte = cap.cint)
|
||||
if m == 0:
|
||||
# try again; ask for capacity:
|
||||
cap = WideCharToMultiByte(
|
||||
|
|
@ -386,7 +386,7 @@ when defined(windows):
|
|||
lpWideCharStr = cstring(result),
|
||||
cchWideChar = cint(result.len div 2),
|
||||
lpMultiByteStr = cstring(res),
|
||||
cbMultiByte = cap)
|
||||
cbMultiByte = cap.cint)
|
||||
if m == 0: OSError()
|
||||
setLen(res, m)
|
||||
result = res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue