asn1: code generators that left bit shift .gt. 31 must use 1ULL

The code generators were shifting "1LU" by (<< 32) and (<< 63) which
are undefined operations for a 32-bit integer.  To ensure the integer
is 64-bit use "1ULL".

Change-Id: I062cae5638139a9fe51563f64b1964f87e2f49e3
This commit is contained in:
Jeffrey Altman
2020-05-30 18:07:43 -04:00
committed by Jeffrey Altman
parent ad2a352600
commit 136abf55b7
3 changed files with 5 additions and 5 deletions

View File

@@ -806,7 +806,7 @@ define_type (int level, const char *name, const char *basename, Type *t, int typ
if (max_memno > 63)
range.max = INT64_MAX;
else
range.max = 1LU << max_memno;
range.max = 1ULL << max_memno;
i.type = TInteger;
i.range = &range;