diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2012-04-23 21:33:12 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2012-04-23 21:33:12 +0400 |
commit | fb6ee37aa2c4419901e5a9b52393a4edfa4735be (patch) | |
tree | 02516e1eac2cd1d24a1b457cc4d1fcc2de19d336 /intern/elbeem/intern | |
parent | b8c4c54ff0a0d2315b711612238192ca4c4562f5 (diff) |
corrected more issues from [#31069] Analyzing the Blender project with PVS-Studio.
Remark: I think that "!(nbored & CFBnd)" would be correct but it introduced other bugs so, I just quiet compiler warnings leaving the running system untouched.
Diffstat (limited to 'intern/elbeem/intern')
-rw-r--r-- | intern/elbeem/intern/ntl_geometrymodel.cpp | 2 | ||||
-rw-r--r-- | intern/elbeem/intern/solver_relax.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/intern/elbeem/intern/ntl_geometrymodel.cpp b/intern/elbeem/intern/ntl_geometrymodel.cpp index c20bc34c794..13220736b8e 100644 --- a/intern/elbeem/intern/ntl_geometrymodel.cpp +++ b/intern/elbeem/intern/ntl_geometrymodel.cpp @@ -174,7 +174,7 @@ int ntlGeometryObjModel::initModel(int numVertices, float *vertices, int numTria anitimes.clear(); for(int frame=0; frame<channelSize; frame++) { ntlSetVec3f averts; averts.mVerts.clear(); - ntlSetVec3f anorms; averts.mVerts.clear(); + ntlSetVec3f anorms; anorms.mVerts.clear(); int setsize = (3*numVertices+1); ntlVec3Gfx p(0.),n(1.); diff --git a/intern/elbeem/intern/solver_relax.h b/intern/elbeem/intern/solver_relax.h index f0910a6b2e3..370d8ea182b 100644 --- a/intern/elbeem/intern/solver_relax.h +++ b/intern/elbeem/intern/solver_relax.h @@ -390,7 +390,7 @@ #define DEFAULT_STREAM \ m[dC] = RAC(ccel,dC); \ \ - if((!nbored & CFBnd)) { \ + if(((!nbored) & CFBnd)) { \ \ m[dN ] = CSRC_N ; m[dS ] = CSRC_S ; \ m[dE ] = CSRC_E ; m[dW ] = CSRC_W ; \ |