64 bit windows fixes

This commit is contained in:
Adam D. Ruppe 2018-11-23 20:04:16 -05:00
parent 5e6e03537e
commit 78925da98c
4 changed files with 3 additions and 3 deletions

BIN
glu32.lib

Binary file not shown.

Binary file not shown.

View File

@ -4389,13 +4389,13 @@ string makeUtf8StringFromWindowsString(wchar* str) {
int findIndexOfZero(in wchar[] str) { int findIndexOfZero(in wchar[] str) {
foreach(idx, wchar ch; str) foreach(idx, wchar ch; str)
if(ch == 0) if(ch == 0)
return idx; return cast(int) idx;
return cast(int) str.length; return cast(int) str.length;
} }
int findIndexOfZero(in char[] str) { int findIndexOfZero(in char[] str) {
foreach(idx, char ch; str) foreach(idx, char ch; str)
if(ch == 0) if(ch == 0)
return idx; return cast(int) idx;
return cast(int) str.length; return cast(int) str.length;
} }