From 165b6777241bdff9650d9c024792f4f549949a41 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 13 Dec 2010 22:12:41 +0000 Subject: More VC warning fixes --- src/libstate/global_state.cpp | 2 +- src/stream/turing/turing.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3