Skip to content

Commit

Permalink
fix computing of hash in pastecode example
Browse files Browse the repository at this point in the history
  • Loading branch information
mgencur authored and mbogoevici committed Sep 10, 2010
1 parent 9599dc9 commit b17054c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -61,8 +61,8 @@ private String asHex(byte buf[])
if ((buf[i] & 0xff) < 0x10)
{
strBuf.append("0");
strBuf.append(Long.toString(buf[i] & 0xff, 16));
}
strBuf.append(Long.toString(buf[i] & 0xff, 16));
}
if (strBuf.length() <= 6)
{
Expand Down

0 comments on commit b17054c

Please sign in to comment.