acm_random,Rand9Signed: correct cast
authorJames Zern <jzern@google.com>
Fri, 27 May 2016 17:33:56 +0000 (10:33 -0700)
committerJames Zern <jzern@google.com>
Fri, 27 May 2016 17:33:56 +0000 (10:33 -0700)
commit13d48c4267b4de83048602d6a8c2c30db51cf13c
tree404a4b8d8c77cc63ebeb7850ccc4e15268dd1b10
parent0ba9b299e957d4ecb476386fa9b9f1624fd83ab7
acm_random,Rand9Signed: correct cast

convert the random value to int16 before subtracting 256 from it; quiets
a ubsan (sanitize=integer) warning

BUG=webm:1225

Change-Id: Ibc2c5a21f30e112bd6c180f7d6a033327c38d0df
test/acm_random.h