VarInt patch by "bake3978", taken from https://code.google.com/p/bitcoinj/issues/detail?id=582

Deleted unnecessary codes; long val; ... val = first; ... this.value = val; -> this.value = first;