Skip to content

Commit

Permalink
Merge pull request #31 from alishuja/master
Browse files Browse the repository at this point in the history
Fix for issue #9 for 32-bit architectures
  • Loading branch information
ericchiang authored Jul 2, 2021
2 parents d3ac1f5 + a62c5cf commit 05baef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tspi/tpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (tpm *TPM) GetEventLog() ([]tspiconst.Log, error) {
}

length := count * C.UINT32(unsafe.Sizeof(event))
slice := (*[1 << 30]C.TSS_PCR_EVENT)(unsafe.Pointer(events))[:length:length]
slice := (*[1 << 26]C.TSS_PCR_EVENT)(unsafe.Pointer(events))[:length:length]

for i := 0; i < int(count); i++ {
var entry tspiconst.Log
Expand Down

0 comments on commit 05baef6

Please sign in to comment.