Ensure gldPrevious is scoped to its own translation unit (#556)

This commit is contained in:
Michał Janiszewski 2019-06-18 22:05:18 +02:00 committed by Matt Cooley
parent 711b37f0bc
commit e9551e3774

View File

@ -48,7 +48,7 @@ typedef struct
bool bUseSep;
} LASTDISP;
LASTDISP gldPrevious = { 0, -1, 0, -1, (NUM_WIDTH)-1, false, false, false };
static LASTDISP gldPrevious = { 0, -1, 0, -1, (NUM_WIDTH)-1, false, false, false };
// Truncates if too big, makes it a non negative - the number in rat. Doesn't do anything if not in INT mode
CalcEngine::Rational CCalcEngine::TruncateNumForIntMath(CalcEngine::Rational const& rat)