Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <assert.h>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand All @@ -35,7 +36,7 @@ bool misaligned = false;
// happen by chance, so try this on many threads.
void *Thread(void *unused) {
big_object x;
uint alignment = (unsigned long)&x % alignof(big_object);
uintptr_t alignment = (uintptr_t)&x % alignof(big_object);

if (alignment != 0)
misaligned = true;
Expand Down
Loading