From 449fb4775e95bc94a250414435f825826552ef22 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 12 Dec 2011 23:13:56 -0800 Subject: [PATCH] check length of TESTuint64 --- lib/asn1/check-template.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/asn1/check-template.c b/lib/asn1/check-template.c index cef33bf87..747492ac5 100644 --- a/lib/asn1/check-template.c +++ b/lib/asn1/check-template.c @@ -75,6 +75,12 @@ test_uint64(void) for (i = 0; i < ntests; i++) tests[i].val = &values[i]; + if (sizeof(TESTuint64) != sizeof(uint64_t)) { + ret += 1; + printf("sizeof(TESTuint64) %d != sizeof(uint64_t) %d\n", + (int)sizeof(TESTuint64), (int)sizeof(uint64_t)); + } + ret += generic_test (tests, ntests, sizeof(TESTuint64), (generic_encode)encode_TESTuint64, (generic_length)length_TESTuint64,