Skip to content

Commit 7df8992

Browse files
fix: additional MSVC v142 build issue with tls1.3 configuration enabled.
Signed-off-by: Cesar Cruz <cesar.cruz@philips.com> Signed-off-by: ccrugoPhilips <cesar.cruz@philips.com> Signed-off-by: Ronald Cron <ronald.cron@arm.com>
1 parent d1f5169 commit 7df8992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/psa_crypto_slot_management.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ psa_status_t psa_reserve_free_key_slot(psa_key_id_t *volatile_key_id,
663663
/* Refresh slot_idx, for when the slot is not the original
664664
* selected_slot but rather unused_persistent_key_slot. */
665665
slot_idx = selected_slot - global_data.key_slots;
666-
*volatile_key_id = PSA_KEY_ID_VOLATILE_MIN + slot_idx;
666+
*volatile_key_id = PSA_KEY_ID_VOLATILE_MIN + (psa_key_id_t) slot_idx;
667667
}
668668
#endif
669669
*p_slot = selected_slot;

0 commit comments

Comments
 (0)