Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
71b2986d
Commit
71b2986d
authored
Aug 16, 2017
by
James Willis
Browse files
Use generic SWIFT structure alignment for runner.
parent
cf768834
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/testActivePair.c
View file @
71b2986d
...
...
@@ -460,7 +460,7 @@ int main(int argc, char *argv[]) {
engine
.
ti_current
=
8
;
engine
.
max_active_bin
=
num_time_bins
;
if
(
posix_memalign
((
void
**
)
&
runner
,
part_align
,
sizeof
(
struct
runner
))
!=
if
(
posix_memalign
((
void
**
)
&
runner
,
SWIFT_STRUCT_ALIGNMENT
,
sizeof
(
struct
runner
))
!=
0
)
{
error
(
"couldn't allocate runner"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment