Skip to content

Commit 6d15c2b

Browse files
author
Dimitar Tomov
authored
Merge pull request #176 from dgarske/struct_copy
Refactor the assignment of structs to use memcpy
2 parents e8c19ac + 14cce34 commit 6d15c2b

2 files changed

Lines changed: 352 additions & 93 deletions

File tree

src/tpm2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5355,7 +5355,7 @@ int TPM2_GetName(TPM2_CTX* ctx, UINT32 handleValue, int handleCnt, int idx, TPM2
53555355

53565356
void TPM2_SetupPCRSel(TPML_PCR_SELECTION* pcr, TPM_ALG_ID alg, int pcrIndex)
53575357
{
5358-
if (pcr && pcrIndex >= PCR_FIRST && pcrIndex <= PCR_LAST) {
5358+
if (pcr && pcrIndex >= (int)PCR_FIRST && pcrIndex <= (int)PCR_LAST) {
53595359
pcr->count = 1;
53605360
pcr->pcrSelections[0].hash = alg;
53615361
pcr->pcrSelections[0].sizeofSelect = PCR_SELECT_MIN;

0 commit comments

Comments
 (0)