piv: Avoid cast ignoring errors (CID 357984)
piv: Avoid cast ignoring errors (CID 357984)

Thanks coverity

dengert/OpenSC,hongquan/OpenSC-main,Jakuje/OpenSC,OpenSC/OpenSC,AktivCo/OpenSC,hongquan/OpenSC-main,AktivCo/OpenSC,Jakuje/OpenSC,fabled/OpenSC,fabled/OpenSC,rickyepoderi/OpenSC,LudovicRousseau/OpenSC,philipWendland/OpenSC,metsma/OpenSC,LudovicRousseau/OpenSC,OpenSC/OpenSC,mouse07410/OpenSC,LudovicRousseau/OpenSC,dengert/OpenSC,metsma/OpenSC,fabled/OpenSC,rickyepoderi/OpenSC,Jakuje/OpenSC,mouse07410/OpenSC,frankmorgner/OpenSC,frankmorgner/OpenSC,rickyepoderi/OpenSC,hongquan/OpenSC-main,mouse07410/OpenSC,dengert/OpenSC,OpenSC/OpenSC,philipWendland/OpenSC,frankmorgner/OpenSC,Jakuje/OpenSC,fabled/OpenSC,frankmorgner/OpenSC,philipWendland/OpenSC,metsma/OpenSC,AktivCo/OpenSC