MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #7723 All Revisions ] Back to Issue ]
Summary 0007723: Operator precedence in Correct_Wire
Revision 2011-11-23 18:01 by szy
Description This bug has been reported by Christian R. Krug on OCC Forum, see thread 7288:
http://www.opencascade.org/org/forum/thread_7288 [^]

----------

I found some errors in Correct_Wire.cxx concerning operator precedence.

Instead of

if(ptr[i].State() | 32 ==0) { (line 342)
if(ptr[bef].State() | 32 ==0) { (lines 346 and 350)
if(ptr[i].State() | 16 == 0) return; (lines 874 and 988)

it should read

if((ptr[i].State() | 32) == 0)
if((ptr[bef].State() | 32) == 0) {
if((ptr[i].State() | 16) == 0) return;

With kind regards, Kris
Revision 2006-06-29 09:15 by szy
Description This bug has been reported by Christian R. Krug on OCC Forum, see thread 7288:
http://www.opencascade.org/org/forum/thread_7288 [^]

----------

I found some errors in Correct_Wire.cxx concerning operator precedence.

Instead of

if(ptr[i].State() | 32 ==0) { (line 342)
if(ptr[bef].State() | 32 ==0) { (lines 346 and 350)
if(ptr[i].State() | 16 == 0) return; (lines 874 and 988)

it should read

if((ptr[i].State() | 32) == 0)
if((ptr[bef].State() | 32) == 0) {
if((ptr[i].State() | 16) == 0) return;

With kind regards, Kris


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker