We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7410179 commit d8b80c3Copy full SHA for d8b80c3
src/Core.cpp
@@ -50,8 +50,8 @@ void Core::load_program_memory(){
50
stringstream line(temp);
51
unsigned int address;
52
unsigned int inst;
53
- bool isReadAddr = (line>>hex>>address);
54
- bool isReadInst = (line>>hex>>inst);
+ bool isReadAddr = static_cast<bool>(line>>hex>>address);
+ bool isReadInst = static_cast<bool>(line>>hex>>inst);
55
56
if (isReadAddr && isReadInst) {
57
if (address >= 0 && address <= MEM_CAPACITY - sizeof(unsigned int)){
0 commit comments