ports/math/sc/patches/patch-pipe_c

18 lines
470 B
Text

Index: pipe.c
--- pipe.c.orig
+++ pipe.c
@@ -36,12 +36,13 @@ getnum(int r0, int c0, int rn, int cn, int fd)
for (c = c0, pp = ATBL(tbl, r, c); c <= cn; pp++, c++) {
*line = '\0';
p = *pp;
- if (p)
+ if (p) {
if (p->cellerror)
sprintf(line, "%s", (*pp)->cellerror == CELLERROR ?
"ERROR" : "INVALID");
else if (p->flags & is_valid)
sprintf(line, "%.15g", p->v);
+ }
if (c < cn)
strcat(line, "\t");
else