mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Replace LONG -> int32_t
This commit is contained in:
parent
ef3f5e9cbb
commit
ea4c4ea45f
2 changed files with 4 additions and 4 deletions
|
@ -51,10 +51,10 @@ void CCalcEngine::SetRadixTypeAndNumWidth(RADIX_TYPE radixtype, NUM_WIDTH numwid
|
||||||
DisplayNum();
|
DisplayNum();
|
||||||
}
|
}
|
||||||
|
|
||||||
LONG CCalcEngine::DwWordBitWidthFromeNumWidth(NUM_WIDTH /*numwidth*/)
|
int32_t CCalcEngine::DwWordBitWidthFromeNumWidth(NUM_WIDTH /*numwidth*/)
|
||||||
{
|
{
|
||||||
static constexpr int nBitMax[] = { 64, 32, 16, 8 };
|
static constexpr int nBitMax[] = { 64, 32, 16, 8 };
|
||||||
LONG wmax = nBitMax[0];
|
int32_t wmax = nBitMax[0];
|
||||||
|
|
||||||
if (m_numwidth >= 0 && (size_t)m_numwidth < size(nBitMax))
|
if (m_numwidth >= 0 && (size_t)m_numwidth < size(nBitMax))
|
||||||
{
|
{
|
||||||
|
|
|
@ -116,7 +116,7 @@ private:
|
||||||
int m_nLastCom; // Last command entered.
|
int m_nLastCom; // Last command entered.
|
||||||
ANGLE_TYPE m_angletype; // Current Angle type when in dec mode. one of deg, rad or grad
|
ANGLE_TYPE m_angletype; // Current Angle type when in dec mode. one of deg, rad or grad
|
||||||
NUM_WIDTH m_numwidth; // one of qword, dword, word or byte mode.
|
NUM_WIDTH m_numwidth; // one of qword, dword, word or byte mode.
|
||||||
LONG m_dwWordBitWidth; // # of bits in currently selected word size
|
int32_t m_dwWordBitWidth; // # of bits in currently selected word size
|
||||||
|
|
||||||
CHistoryCollector m_HistoryCollector; // Accumulator of each line of history as various commands are processed
|
CHistoryCollector m_HistoryCollector; // Accumulator of each line of history as various commands are processed
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ private:
|
||||||
CalcEngine::Rational SciCalcFunctions(CalcEngine::Rational const& rat, DWORD op);
|
CalcEngine::Rational SciCalcFunctions(CalcEngine::Rational const& rat, DWORD op);
|
||||||
CalcEngine::Rational DoOperation(int operation, CalcEngine::Rational const& lhs, CalcEngine::Rational const& rhs);
|
CalcEngine::Rational DoOperation(int operation, CalcEngine::Rational const& lhs, CalcEngine::Rational const& rhs);
|
||||||
void SetRadixTypeAndNumWidth(RADIX_TYPE radixtype, NUM_WIDTH numwidth);
|
void SetRadixTypeAndNumWidth(RADIX_TYPE radixtype, NUM_WIDTH numwidth);
|
||||||
LONG DwWordBitWidthFromeNumWidth(NUM_WIDTH numwidth);
|
int32_t DwWordBitWidthFromeNumWidth(NUM_WIDTH numwidth);
|
||||||
uint32_t NRadixFromRadixType( RADIX_TYPE radixtype);
|
uint32_t NRadixFromRadixType( RADIX_TYPE radixtype);
|
||||||
|
|
||||||
bool TryToggleBit(CalcEngine::Rational& rat, DWORD wbitno);
|
bool TryToggleBit(CalcEngine::Rational& rat, DWORD wbitno);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue