Skip to content

Commit 9edb640

Browse files
committed
Fix type mismatch on Windows
It's C.size_t and not C.ulong (apparently size_t is a ulonglong on Windows).
1 parent b1e2b88 commit 9edb640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ir.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ func (v Value) IsConstantString() bool {
919919

920920
// ConstGetAsString will return the string contained in a constant.
921921
func (v Value) ConstGetAsString() string {
922-
length := C.ulong(0)
922+
length := C.size_t(0)
923923
cstr := C.LLVMGetAsString(v.C, &length)
924924
return C.GoStringN(cstr, C.int(length))
925925
}

0 commit comments

Comments
 (0)