Skip to content

Commit a99570e

Browse files
author
Luca Bruno
authored
Merge pull request #362 from lsm5/32-bit-fix
Use C.size_t instead of C.ulong
2 parents 47c10f0 + cdfecbb commit a99570e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdjournal/journal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ func (j *Journal) GetBootID() (string, error) {
11551155
return "", err
11561156
}
11571157

1158-
id128StringMax := C.ulong(C.SD_ID128_STRING_MAX)
1158+
id128StringMax := C.size_t(C.SD_ID128_STRING_MAX)
11591159
c := (*C.char)(C.malloc(id128StringMax))
11601160
defer C.free(unsafe.Pointer(c))
11611161
C.my_sd_id128_to_string(sd_id128_to_string, boot_id, c)

0 commit comments

Comments
 (0)