Skip to content

Commit b8e5e9a

Browse files
committed
Fixing bugs
1 parent e4c416e commit b8e5e9a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

include/mean_atomic.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323

2424
#ifndef _MEAN_ATOMIC_HPP_
25-
#define _MEAN_ATOMIC_HPP__
25+
#define _MEAN_ATOMIC_HPP_
2626

2727
#include <boost/numeric/ublas/vector_proxy.hpp>
2828
#include "mean_functors.hpp"

python/demo_quad.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
# along with BayesOpt. If not, see <http://www.gnu.org/licenses/>.
2020
# ------------------------------------------------------------------------
2121

22+
import sys
2223
import bayesopt
2324
from bayesoptmodule import BayesOptContinuous
2425
import numpy as np

utils/fileparser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ namespace bayesopt
120120
{
121121
std::istringstream ss(str);
122122
T result;
123-
return ss >> std::setprecision(precision) >> result ? result : 0;
123+
return (ss >> std::setprecision(precision) >> result) ? result : 0;
124124
}
125125
private:
126126
/* Search variables in file */

0 commit comments

Comments
 (0)