diff options
author | lloyd <[email protected]> | 2010-12-13 22:12:41 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-12-13 22:12:41 +0000 |
commit | 165b6777241bdff9650d9c024792f4f549949a41 (patch) | |
tree | ff35d146a9bce1b492886ad1e00f1fa91c1a5afe /src | |
parent | aa8a0c19ec2156864d16bfe4b82fce4f2203c08d (diff) |
More VC warning fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/libstate/global_state.cpp | 2 | ||||
-rw-r--r-- | src/stream/turing/turing.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstate/global_state.cpp b/src/libstate/global_state.cpp index 00b71039f..43c935ca3 100644 --- a/src/libstate/global_state.cpp +++ b/src/libstate/global_state.cpp @@ -83,7 +83,7 @@ Library_State* swap_global_state(Library_State* new_state) */ bool global_state_exists() { - return (global_lib_state); + return (global_lib_state != 0); } } diff --git a/src/stream/turing/turing.cpp b/src/stream/turing/turing.cpp index 619ef6682..697c660ed 100644 --- a/src/stream/turing/turing.cpp +++ b/src/stream/turing/turing.cpp @@ -247,7 +247,7 @@ void Turing::key_schedule(const byte key[], size_t length) PHT(K); - for(size_t i = 0; i != 256; ++i) + for(u32bit i = 0; i != 256; ++i) { u32bit W0 = 0, C0 = i; u32bit W1 = 0, C1 = i; |