summaryrefslogtreecommitdiff
path: root/lib/coding.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2012-03-14 00:20:16 +0100
committerSimon Josefsson <simon@josefsson.org>2012-03-14 00:34:11 +0100
commit6e534bf4fb3144be51c928ed3efcf9c36055c9c7 (patch)
tree6b210e0bfffff8c7251208ca603d90c3902e6f3f /lib/coding.c
parent4b1805a021aa9abe74ba775aaaff84fc21ea07e9 (diff)
downloadlibtasn1-6e534bf4fb3144be51c928ed3efcf9c36055c9c7.tar.gz
libtasn1-6e534bf4fb3144be51c928ed3efcf9c36055c9c7.tar.bz2
libtasn1-6e534bf4fb3144be51c928ed3efcf9c36055c9c7.zip
Simplify overflow check.
Diffstat (limited to 'lib/coding.c')
-rw-r--r--lib/coding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coding.c b/lib/coding.c
index ab430fc..8b72eba 100644
--- a/lib/coding.c
+++ b/lib/coding.c
@@ -68,7 +68,7 @@ _asn1_error_description_value_not_found (ASN1_TYPE node,
* The @ans buffer is pre-allocated and must have room for the output.
**/
void
-asn1_length_der (unsigned long len, unsigned char *ans, int *ans_len)
+asn1_length_der (unsigned long int len, unsigned char *ans, int *ans_len)
{
int k;
unsigned char temp[SIZEOF_UNSIGNED_LONG_INT];