Skip to content

Commit

Permalink
Use Java instead of brainfuck in 'if' statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Oct 4, 2014
1 parent a384566 commit 4eff270
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public int unpack (ISOComponent m, byte[] b) throws ISOException
//Determine current tag
int i = consumed==0&&fld[0]!=null?0:tagPrefixer.decodeLength(b, consumed);

if (!(i < fld.length) || fld[i] == null)
throw new ISOException ("Unsupported sub-field " + i + " unpacking field " + m.getKey());
if (i >= fld.length || fld[i] == null)
throw new ISOException("Unsupported sub-field " + i + " unpacking field " + m.getKey());

c = fld[i].createComponent(i);
consumed += fld[i].unpack (c, b, consumed);
Expand Down

0 comments on commit 4eff270

Please sign in to comment.