Skip to content
Snippets Groups Projects
Commit 0709f38a authored by Kostyantyn Vorobyov's avatar Kostyantyn Vorobyov
Browse files

Fix undefined behaviour in valid_block.c test case

parent 1a1b0df2
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ int main(int argc, char **argv) {
*pmin = 'P';
*pmax = 'L';
int diff = pmax - pmin;
int diff = (uintptr_t)pmax - (uintptr_t)pmin;
/*@assert \valid(pmin); */
/*@assert \valid(pmax); */
/* Access `pmax` through `pmin` */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment