Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
6f642689
Commit
6f642689
authored
Oct 22, 2015
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to vargs.
parent
227f8f9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/HFO.cpp
src/HFO.cpp
+2
-1
No files found.
src/HFO.cpp
View file @
6f642689
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include <netdb.h>
#include <netdb.h>
#include <iostream>
#include <iostream>
#include <sstream>
#include <sstream>
#include <stdarg.h>
using
namespace
hfo
;
using
namespace
hfo
;
...
@@ -251,7 +252,7 @@ status_t HFOEnvironment::act(action_t action, ...) {
...
@@ -251,7 +252,7 @@ status_t HFOEnvironment::act(action_t action, ...) {
if
(
n_args
>
0
)
{
if
(
n_args
>
0
)
{
float
params
[
n_args
];
float
params
[
n_args
];
va_list
vl
;
va_list
vl
;
va_start
(
vl
,
n_args
);
va_start
(
vl
,
action
);
for
(
int
i
=
0
;
i
<
n_args
;
++
i
)
{
for
(
int
i
=
0
;
i
<
n_args
;
++
i
)
{
params
[
i
]
=
va_arg
(
vl
,
double
);
params
[
i
]
=
va_arg
(
vl
,
double
);
}
}
...
...
Write
Preview
Markdown
is supported
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