diff options
| author | Marijn Haverbeke <[email protected]> | 2011-04-08 00:41:24 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-04-08 00:41:52 +0200 |
| commit | 973023030e7c0ca9814bc60f389bb8d75923edc7 (patch) | |
| tree | c4e4b24902b899a1f9815ca30edaaf0d6a2f8915 /src/rt/rust_internal.h | |
| parent | Updated test to use 'check' rather than just logging results. (diff) | |
| download | archived-rust-973023030e7c0ca9814bc60f389bb8d75923edc7.tar.xz archived-rust-973023030e7c0ca9814bc60f389bb8d75923edc7.zip | |
add -O2 when compiling rt, fix warnings triggered by optimizer
Diffstat (limited to 'src/rt/rust_internal.h')
| -rw-r--r-- | src/rt/rust_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h index a1cc8e51..4a1f3e45 100644 --- a/src/rt/rust_internal.h +++ b/src/rt/rust_internal.h @@ -403,7 +403,7 @@ rust_crate_reader void get_uleb(T &out) { out = T(0); for (size_t i = 0; i < sizeof(T) && ok; ++i) { - uint8_t byte; + uint8_t byte = 0; get(byte); out <<= 7; out |= byte & 0x7f; |