Skip to content

Commit b20932d

Browse files
committed
Fixing memory usage estimate
1 parent 00e718d commit b20932d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solvertypesmini.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ class FDouble : public Field {
577577
bool is_one() const override { return val == 1; }
578578
void set_zero() override { val = 0; }
579579
void set_one() override { val = 1; }
580-
uint64_t bytes_used() const override { return sizeof(val); }
580+
uint64_t bytes_used() const override { return sizeof(FDouble); }
581581

582582
bool parse(const std::string& str, const uint32_t line_no) override {
583583
mpz_class head;
@@ -696,7 +696,7 @@ class FMpz : public Field {
696696
}
697697

698698
uint64_t bytes_used() const override {
699-
return sizeof(mpz_class) + helper(val);
699+
return sizeof(FMpz) + helper(val);
700700
}
701701
};
702702

0 commit comments

Comments
 (0)