diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-20 16:54:26 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-20 16:54:26 +0200 |
commit | e965f59066f339d081954c676b2d2f1e6b580dda (patch) | |
tree | 5069b49b292cd9455de21e1d3756e41ee63160e7 | |
parent | 2ff366d078d368b9a6be6831f1041b4d9b995c6a (diff) | |
download | libtasn1-e965f59066f339d081954c676b2d2f1e6b580dda.tar.gz |
coding: prevented an unsigned to signed conversion
-rw-r--r-- | lib/coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coding.c b/lib/coding.c index 0c0f69c..7821d85 100644 --- a/lib/coding.c +++ b/lib/coding.c @@ -757,7 +757,7 @@ _asn1_ordering_set (unsigned char *der, int der_len, asn1_node node) if (err != ASN1_SUCCESS) goto error; - t = class << 24; + t = ((unsigned int)class) << 24; p_vet->value = t | tag; counter += len2; |