Skip to content

Commit

Permalink
Merge pull request #362 from lsm5/32-bit-fix
Browse files Browse the repository at this point in the history
Use C.size_t instead of C.ulong
  • Loading branch information
Luca Bruno committed Mar 25, 2021
2 parents 47c10f0 + cdfecbb commit a99570e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdjournal/journal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ func (j *Journal) GetBootID() (string, error) {
return "", err
}

id128StringMax := C.ulong(C.SD_ID128_STRING_MAX)
id128StringMax := C.size_t(C.SD_ID128_STRING_MAX)
c := (*C.char)(C.malloc(id128StringMax))
defer C.free(unsafe.Pointer(c))
C.my_sd_id128_to_string(sd_id128_to_string, boot_id, c)
Expand Down

0 comments on commit a99570e

Please sign in to comment.