Skip to content
GitLab
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
d3bf6e3e
Commit
d3bf6e3e
authored
Mar 24, 2016
by
Matthieu Schaller
Browse files
Better type for ID check
parent
0b5ebeb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/common_io.c
View file @
d3bf6e3e
...
...
@@ -565,8 +565,10 @@ void collect_dm_gparts(const struct gpart *const gparts, size_t Ntot, struct gpa
/* Loop over all gparts */
for
(
size_t
i
=
0
;
i
<
Ntot
;
++
i
)
{
/* message("i=%zd count=%zd id=%lld part=%p", i, count, gparts[i].id, gparts[i].part); */
/* And collect the DM ones */
if
(
gparts
[
i
].
id
<
0
)
{
if
(
gparts
[
i
].
id
<
0
LL
)
{
memcpy
(
&
dmparts
[
count
],
&
gparts
[
i
],
sizeof
(
struct
gpart
));
dmparts
[
count
].
id
=
-
dmparts
[
count
].
id
;
count
++
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment