We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 67cb7df + 37cc010 commit 8f8250bCopy full SHA for 8f8250b
compiler-rt/test/asan/TestCases/Posix/fakestack_alignment.cpp
@@ -21,6 +21,7 @@
21
22
#include <assert.h>
23
#include <pthread.h>
24
+#include <stdint.h>
25
#include <stdio.h>
26
#include <stdlib.h>
27
#include <string.h>
@@ -35,7 +36,7 @@ bool misaligned = false;
35
36
// happen by chance, so try this on many threads.
37
void *Thread(void *unused) {
38
big_object x;
- uint alignment = (unsigned long)&x % alignof(big_object);
39
+ uintptr_t alignment = (uintptr_t)&x % alignof(big_object);
40
41
if (alignment != 0)
42
misaligned = true;
0 commit comments