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:

committed by
Jeffrey Altman

parent
ad2a352600
commit
136abf55b7
@@ -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 = ⦥
|
||||
|
Reference in New Issue
Block a user