Mercurial > pub > dyncall > dyncall
changeset 597:0179c25fd855
- test/call_suite_aggrs: LL-suffixed long long int constant to avoid side-effects and warning
author | Tassilo Philipp |
---|---|
date | Tue, 20 Sep 2022 10:44:57 +0200 |
parents | 1586812f8eed |
children | 57ad31f924bb |
files | test/call_suite_aggrs/main.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/call_suite_aggrs/main.c Tue Sep 20 10:39:09 2022 +0200 +++ b/test/call_suite_aggrs/main.c Tue Sep 20 10:44:57 2022 +0200 @@ -147,11 +147,11 @@ /* bound check memory adjacent to returned aggregate, to check for overflows by dcCallAggr */ long long* adj_ll = (get_max_aggr_size() - rtype_size) > sizeof(long long) ? (long long*)((char*)V_a[pos] + rtype_size) : NULL; if(adj_ll) - *adj_ll = 0x0123456789abcdef; + *adj_ll = 0x0123456789abcdefLL; s = ((int(*)(const void*,const void*))rtype_a_cmp)(dcCallAggr(p, t, rtype_a, V_a[pos]), K_a[pos]); - if(adj_ll && *adj_ll != 0x0123456789abcdef) { + if(adj_ll && *adj_ll != 0x0123456789abcdefLL) { printf("writing rval overflowed into adjacent memory;"); return 0; }