Commit 3fa3a52c authored by ElenaSubbotina's avatar ElenaSubbotina

.

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