Skip to content

Commit

Permalink
Merge pull request #48 from jacky6016/dev
Browse files Browse the repository at this point in the history
Fix function validateTrytes
  • Loading branch information
WEI, CHEN committed Jun 7, 2018
2 parents e863d28 + 5e57807 commit 70c7c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trinary.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static int validateTrytes(Trobject_t *trytes)
return 0;

for (int i = 0; i < trytes->len; i++)
if ((trytes->data[i] <= 'A' && trytes->data[i] >= 'Z') &&
if ((trytes->data[i] < 'A' || trytes->data[i] > 'Z') &&
trytes->data[i] != '9')
return 0;
return 1;
Expand Down

0 comments on commit 70c7c88

Please sign in to comment.