Fix useless/misplaced short conversions
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user