Fix bug in sign-extending varints

TBR=sigmund@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//26227003