Fix useless/misplaced short conversions

This commit is contained in:
Arnaud Fontaine
2018-03-21 11:41:26 +01:00
parent 4796f6ea78
commit 79d9342827
3 changed files with 14 additions and 14 deletions

View File

@@ -291,7 +291,7 @@ public final class SmartPGPApplet extends Applet {
case Constants.TAG_HISTORICAL_BYTES_CARD_SERVICE_CARD_CAPABILITIES:
off = Util.arrayCopyNonAtomic(Constants.HISTORICAL_BYTES, (short)0,
buf, (short)off,
buf, off,
(byte)Constants.HISTORICAL_BYTES.length);
break;
@@ -1090,17 +1090,17 @@ public final class SmartPGPApplet extends Applet {
case Constants.TAG_GENERATION_DATE_SIG:
assertAdmin();
data.pgp_keys[Persistent.PGP_KEYS_OFFSET_SIG].setGenerationDate(buf, (short)0, (short)lc);
data.pgp_keys[Persistent.PGP_KEYS_OFFSET_SIG].setGenerationDate(buf, (short)0, lc);
break;
case Constants.TAG_GENERATION_DATE_DEC:
assertAdmin();
data.pgp_keys[Persistent.PGP_KEYS_OFFSET_DEC].setGenerationDate(buf, (short)0, (short)lc);
data.pgp_keys[Persistent.PGP_KEYS_OFFSET_DEC].setGenerationDate(buf, (short)0, lc);
break;
case Constants.TAG_GENERATION_DATE_AUT:
assertAdmin();
data.pgp_keys[Persistent.PGP_KEYS_OFFSET_AUT].setGenerationDate(buf, (short)0, (short)lc);
data.pgp_keys[Persistent.PGP_KEYS_OFFSET_AUT].setGenerationDate(buf, (short)0, lc);
break;
case Constants.TAG_RESETTING_CODE: