[esnacc-dev] [PATCH 06/11] printxml changes
Aaron Conole
aconole at bytheb.org
Tue Dec 6 19:47:04 UTC 2016
The recently merged PrintXML enhancements were not properly typed for
windows systems, which resulted in errors to build - related to the
template specification.
Fixes b9d213af1053 ("cxx-lib: PrintXML cleanups")
Signed-off-by: Aaron Conole <aconole at bytheb.org>
---
cxx-lib/inc/asn-incl.h | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/cxx-lib/inc/asn-incl.h b/cxx-lib/inc/asn-incl.h
index de78f45..5ec988c 100644
--- a/cxx-lib/inc/asn-incl.h
+++ b/cxx-lib/inc/asn-incl.h
@@ -637,20 +637,19 @@ public:
virtual AsnType* Clone() const { return new AsnInt(*this); }
virtual const char* typeName() const { return "AsnInt"; }
- template <typename int_t>
- int_t toInteger() const
+ template <typename int_type>
+ int_type toInteger() const
{
//FUNC("AsnInt::toInteger");
if (!m_bytes || m_len <= 0)
return 0;
- int_t iResult = 0;
+ int_type iResult = 0;
- if (m_len > sizeof(int_t)) {
- throw SNACCDLL_API
- SnaccException("integer is too big for conversion to type",
- DECODE_ERROR);
+ if (m_len > sizeof(int_type)) {
+ throw SnaccException("integer is too big for conversion to type",
+ DECODE_ERROR);
}
// If big int is negative initialize result to -1
--
2.7.4
More information about the dev
mailing list