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
Jonathan Lambrechts
seamsh
Commits
50585162
Commit
50585162
authored
Oct 28, 2021
by
Jonathan Lambrechts
Browse files
fix vector_push_n (it was not used but...)
parent
ad7cb19d
Pipeline
#9920
passed with stages
in 5 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
seamshlib/vector.h
View file @
50585162
...
...
@@ -48,7 +48,8 @@ static void *_vectorPush(void **m, size_t s) {
size_t
*
n
=
(
*
(
size_t
**
)
m
)
-
2
;
n
[
1
]
+=
s
;
if
(
n
[
0
]
<
n
[
1
])
{
n
[
0
]
*=
2
;
while
(
n
[
0
]
<
n
[
1
])
n
[
0
]
*=
2
;
n
=
(
size_t
*
)
realloc
(
n
,
n
[
0
]
+
2
*
sizeof
(
size_t
));
*
m
=
n
+
2
;
}
...
...
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