diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-03-31 22:23:23 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-04-01 01:46:44 +0200 |
| commit | 3f359ea14423d05b5096d414fbc01ca4cc3839df (patch) | |
| tree | 033d96d84a71649a38221b3ecfbe3b3193b202b2 /.gitignore | |
| parent | c4c9935b129f63fe837bab2e1e3e5db6d32b7fb8 (diff) | |
| download | sparse-dev-3f359ea14423d05b5096d414fbc01ca4cc3839df.tar.gz | |
fix allowing casts of AS pointers to uintptr_t
The patch b3daa62b5 ("also accept casts of AS pointers to uintptr_t")
is bogus and allows uintptr_t as the *source type* instead of the
*target type*. This was helped by a previous bug, in patch
d96da358c ("stricter warning for explicit cast to ulong"), where
a test for Wcast_from_as was wrongly added for the source type.
Fix this by:
* adding the test for uintptr_t to the target type;
* removing the test for Wcast_from_as from the source type,
replacing it by a test of Wcast_to_as;
* clarify and extend the tge testcases.
So, now, casts from uintptr_t to AS pointers are also allowed.
Fixes: b3daa62b53109dba78c7937b3a6a0cd7d67865d5
Fixes: d96da358cfa0432f067a4e66940765883b80ee62
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
