Skip to content

Commit 9263e43

Browse files
authored
Merge pull request diffblue#2403 from tautschnig/vs-zero-1
Explicitly compare int to zero to avoid Visual Studio warning
2 parents f27e724 + 2afa919 commit 9263e43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jbmc/src/java_bytecode/jar_file.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ optionalt<std::string> jar_filet::get_entry(const std::string &name)
8080

8181
static bool is_space(const char ch)
8282
{
83-
return std::isspace(ch);
83+
return std::isspace(ch) != 0;
8484
}
8585

8686
/// Remove leading and trailing whitespace characters from string

src/util/unicode.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Author: Daniel Kroening, [email protected]
2323
bool is_little_endian_arch()
2424
{
2525
uint32_t i=1;
26-
return reinterpret_cast<uint8_t &>(i);
26+
return reinterpret_cast<uint8_t &>(i) != 0;
2727
}
2828

2929
#define BUFSIZE 100

0 commit comments

Comments
 (0)