Commit 3fa3a52c authored by ElenaSubbotina's avatar ElenaSubbotina

.

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