Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
80157091
Commit
80157091
authored
Apr 19, 2018
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Use an explicit cast for the pointer difference.
parent
856d9ab2
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!533
Parallel initialisation
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/space.c
+1
-1
1 addition, 1 deletion
src/space.c
with
1 addition
and
1 deletion
src/space.c
+
1
−
1
View file @
80157091
...
...
@@ -2317,7 +2317,7 @@ void space_first_init_parts_mapper(void *restrict map_data, int count,
const
struct
space
*
restrict
s
=
(
struct
space
*
)
extra_data
;
const
struct
engine
*
e
=
s
->
e
;
struct
xpart
*
restrict
xp
=
s
->
xparts
+
(
p
-
s
->
parts
);
struct
xpart
*
restrict
xp
=
s
->
xparts
+
(
ptrdiff_t
)
(
p
-
s
->
parts
);
const
struct
cosmology
*
cosmo
=
s
->
e
->
cosmology
;
const
struct
phys_const
*
phys_const
=
s
->
e
->
physical_constants
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment