Commit b6695f44 authored by gsell's avatar gsell
Browse files

src/Elements/OpalBeamline.cpp

- OpalBeamline::getFieldAt(): add parenthesis around bit-wise
parent b0194cf7
......@@ -260,7 +260,7 @@ unsigned long OpalBeamline::getFieldAt(const Vector_t &pos, const Vector_t &cent
rtv |= BEAMLINE_OOB;
}
}
if(! rtv & BEAMLINE_OOB) {
if(! (rtv & BEAMLINE_OOB)) {
const Vector_t &ori = section.getOrientation();
if(fabs(ori(0)) > 1.e-10 || fabs(ori(1)) > 1.e-10 || fabs(ori(2)) > 1.e-10) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment