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
b362c1a7
Commit
b362c1a7
authored
Dec 19, 2016
by
Peter W. Draper
Browse files
Don't use void * arithmetic
parent
c476c3fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dump.c
View file @
b362c1a7
...
...
@@ -48,7 +48,7 @@
void
*
dump_get
(
struct
dump
*
d
,
size_t
count
,
size_t
*
offset
)
{
size_t
local_offset
=
atomic_add
(
&
d
->
count
,
count
);
*
offset
=
local_offset
+
d
->
file_offset
;
return
d
->
data
+
local_offset
;
return
(
char
*
)
d
->
data
+
local_offset
;
}
/**
...
...
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