We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00e718d commit b20932dCopy full SHA for b20932d
src/solvertypesmini.h
@@ -577,7 +577,7 @@ class FDouble : public Field {
577
bool is_one() const override { return val == 1; }
578
void set_zero() override { val = 0; }
579
void set_one() override { val = 1; }
580
- uint64_t bytes_used() const override { return sizeof(val); }
+ uint64_t bytes_used() const override { return sizeof(FDouble); }
581
582
bool parse(const std::string& str, const uint32_t line_no) override {
583
mpz_class head;
@@ -696,7 +696,7 @@ class FMpz : public Field {
696
}
697
698
uint64_t bytes_used() const override {
699
- return sizeof(mpz_class) + helper(val);
+ return sizeof(FMpz) + helper(val);
700
701
};
702
0 commit comments