From f6b8e0eae4374f339487a33e3e4fe5462d5816e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 25 Nov 2017 10:16:00 +0100 Subject: New upstream version 2.0.0 --- target/ofps.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 target/ofps.c (limited to 'target/ofps.c') diff --git a/target/ofps.c b/target/ofps.c old mode 100644 new mode 100755 index 5c2219c..54a0ea1 --- 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; } -- cgit v1.2.3