ref: f6ac6cf5bdd09969316a6ca480d1a9b53adf41dd
parent: 2ab7b9a6c96ad0891bde3379ebbe607b8978d824
parent: 13d48c4267b4de83048602d6a8c2c30db51cf13c
author: James Zern <[email protected]>
date: Fri May 27 14:32:05 EDT 2016
Merge "acm_random,Rand9Signed: correct cast"
--- a/test/acm_random.h
+++ b/test/acm_random.h
@@ -35,7 +35,7 @@
int16_t Rand9Signed(void) {
// Use 9 bits: values between 255 (0x0FF) and -256 (0x100).
const uint32_t value = random_.Generate(512);
- return static_cast<int16_t>(value - 256);
+ return static_cast<int16_t>(value) - 256;
}
uint8_t Rand8(void) {