Commit 3fa3a52c authored by ElenaSubbotina's avatar ElenaSubbotina

.

parent 665783a6
...@@ -77,17 +77,15 @@ const bool SXOPER::loadContent(BinProcessor& proc) ...@@ -77,17 +77,15 @@ const bool SXOPER::loadContent(BinProcessor& proc)
SXNum *num = dynamic_cast<SXNum*>(elements_.back().get()); SXNum *num = dynamic_cast<SXNum*>(elements_.back().get());
if (num) if (num)
{ {
bInteger = (num->num.data.bytes.Byte1==num->num.data.bytes.Byte2 && bInteger = !(num->num.data.value - floor(num->num.data.value) > 0);
num->num.data.bytes.Byte2==num->num.data.bytes.Byte3 &&
num->num.data.bytes.Byte3==num->num.data.bytes.Byte4 && bNumber = !bInteger;
num->num.data.bytes.Byte4==0); node = L"n";
if (bInteger)
value = std::to_wstring((int)num->num.data.value);
else
value = boost::lexical_cast<std::wstring>(num->num.data.value);
} }
bNumber = !bInteger;
node = L"n";
if (bInteger)
value = std::to_wstring((int)num->num.data.value);
else
value = boost::lexical_cast<std::wstring>(num->num.data.value);
} }
else if(proc.optional<SxBool>()) else if(proc.optional<SxBool>())
{ {
......
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