2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit c5eb124b authored by Matthias Rungger's avatar Matthias Rungger
Browse files

Fix some compatibility issues with g++

parent d0de6146
......@@ -12,6 +12,7 @@
#include <sstream>
#include <vector>
#include <cassert>
#include <bitset>
#include "cuddObj.hh"
/* class: CuddMintermIterator
......@@ -58,7 +59,7 @@ class CuddMintermIterator {
done_=false;
counter_=0;
if(nvars_>(sizeof(size_t)*CHAR_BIT)) {
if(nvars_>(sizeof(size_t))) {
std::ostringstream os;
os << "Error: CuddMintermIterator: number of variables we iterate over is limited to highest number in size_t.";
throw std::invalid_argument(os.str().c_str());
......@@ -132,7 +133,7 @@ class CuddMintermIterator {
std::cout<<std::endl;
/* number of variables we iterate over is limited to highest number in size_t */
if(nvars_>(sizeof(size_t)*CHAR_BIT)) {
if(nvars_>(sizeof(size_t))) {
std::ostringstream os;
os << "Error: CuddMintermIterator: number of variables we iterate over is limited to highest number in size_t.";
throw std::invalid_argument(os.str().c_str());
......@@ -181,7 +182,7 @@ class CuddMintermIterator {
}
inline void operator++(void) {
const size_t MVAR = sizeof(size_t)*CHAR_BIT;
const size_t MVAR = sizeof(size_t);
iterator++;
progress++;
/* get new cube or expand cube further */
......
......@@ -9,6 +9,7 @@
#define SYMBOLICSET_HH_
#include <vector>
#include <algorithm>
#include <sstream>
#include <cassert>
#include <cmath>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment