Commit ea41bdad authored by Botond Baranyi's avatar Botond Baranyi
Browse files

xsd2ttcn: fixed subtype generated for restricted xs:long (bug 534537)



Change-Id: I91797565cc8dc6e974a7d29b7e8ed28511548374
Signed-off-by: Botond Baranyi's avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent 992ee5a5
......@@ -91,6 +91,12 @@ with {
};
type XSD.Long LongMin_1 (-1 .. 9223372036854775807)
with {
variant "name as 'longMin-1'";
};
}
with {
encode "XML";
......
......@@ -65,4 +65,10 @@ targetNamespace="www.example.org/ranges/integer">
</restriction>
</simpleType>
<simpleType name="longMin-1">
<restriction base="long">
<minInclusive value="-1" />
</restriction>
</simpleType>
</schema>
......@@ -1524,6 +1524,9 @@ void ValueType::applyFacets() // only for integer and float types
upper = -1;
} else if (base == "nonNegativeInteger") {
lower = 0;
} else if (base == "long") {
lower = LLONG_MIN;
upper = LLONG_MAX;
} else if (base == "unsignedLong") {
lower = 0;
upper = ULLONG_MAX;
......
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