1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
Description: Fix precedence in bogus if statement
Author: Nilesh Patra <npatra974@gmail.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=888517
Forwarded: no, upstream is dead
Last-Update: 2021-01-06
--- a/Origin610Parser.cpp
+++ b/Origin610Parser.cpp
@@ -1664,7 +1664,7 @@
file >> curve.surface.type;
file.seekg(LAYER + 0x1C, ios_base::beg);
file >> h;
- if(h & 0x60 == 0x60)
+ if((h & 0x60) == 0x60)
curve.surface.grids = SurfaceProperties::X;
else if(h & 0x20)
curve.surface.grids = SurfaceProperties::Y;
--- a/Origin700Parser.cpp
+++ b/Origin700Parser.cpp
@@ -1273,7 +1273,7 @@
file >> curve.surface.type;
file.seekg(LAYER + 0x1C, ios_base::beg);
file >> h;
- if(h & 0x60 == 0x60)
+ if((h & 0x60) == 0x60)
curve.surface.grids = SurfaceProperties::X;
else if(h & 0x20)
curve.surface.grids = SurfaceProperties::Y;
--- a/Origin750Parser.cpp
+++ b/Origin750Parser.cpp
@@ -1858,7 +1858,7 @@
file >> curve.surface.type;
file.seekg(LAYER + 0x1C, ios_base::beg);
file >> h;
- if(h & 0x60 == 0x60)
+ if((h & 0x60) == 0x60)
curve.surface.grids = SurfaceProperties::X;
else if(h & 0x20)
curve.surface.grids = SurfaceProperties::Y;
--- a/Origin800Parser.cpp
+++ b/Origin800Parser.cpp
@@ -1777,7 +1777,7 @@
file >> curve.surface.type;
file.seekg(LAYER + 0x1C, ios_base::beg);
file >> h;
- if(h & 0x60 == 0x60)
+ if((h & 0x60) == 0x60)
curve.surface.grids = SurfaceProperties::X;
else if(h & 0x20)
curve.surface.grids = SurfaceProperties::Y;
|