diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-01 10:32:14 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-01 10:32:14 +0100 |
commit | 4097e27114d227692d53c5d28487e12a3833cd24 (patch) | |
tree | d5c2a62c4db97de94f92150340612c64d3997669 /target/ofps.c | |
parent | f8a0a4e1c775a90c313cb83201eec4cea4e9a7da (diff) | |
parent | 5514d94483c98e3320b202b1bb882023a7d12027 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'target/ofps.c')
-rwxr-xr-x[-rw-r--r--] | target/ofps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/ofps.c b/target/ofps.c index 5c2219c..54a0ea1 100644..100755 --- a/target/ofps.c +++ b/target/ofps.c @@ -108,7 +108,7 @@ which would probably be regarded as important. To measure spread, independent voronoi tessellations of - these sub dimensions would be neededi, and they could be + these sub dimensions would be needed, and they could be used partly driver optimization (??). For 1D device channels this wouldn't be so hard to @@ -1718,8 +1718,8 @@ static unsigned int comp_cmask(ofps *s, int *nix) { /* the resulting location to be the same of within this. */ for (e = 0; e <= di; e++) { int ix = nix[e]; - if (ix < 0 && ix >= -s->nbp) { /* If fake surface node */ - smask |= 1 << -ix-1; + if (ix < 0 && ix >= (-s->nbp)) { /* If fake surface node */ + smask |= 1 << (-ix-1); } else if (ix >= 0) { /* If real node */ cmask &= s->n[ix]->pmask; } @@ -1752,7 +1752,7 @@ static void det_vtx_gsurf(ofps *s, vtx *vx) { for (e = 0; e <= di; e++) { int ix = vx->nix[e]; if (ix < 0 && ix >= -s->nbp) { /* If fake surface node */ - smask |= 1 << -ix-1; + smask |= 1 << (-ix-1); } else if (ix >= 0) { vx->cmask &= s->n[ix]->pmask; } |