diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-02-15 20:33:15 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-02-15 20:33:15 +0200 |
commit | c0f4e97e4561ff42544e92512bbaf3d7d1f6a671 (patch) | |
tree | bbd2a32876192507dce4bd0ad6a30f0abd3b02b4 /tran.c | |
parent | 178f660b5a4fde6f39e8065185373166f55b6e0c (diff) | |
download | one-true-awk-c0f4e97e4561ff42544e92512bbaf3d7d1f6a671.tar.gz |
Fix compiling with g++.
Diffstat (limited to 'tran.c')
-rw-r--r-- | tran.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -418,7 +418,7 @@ Awkfloat getfval(Cell *vp) /* get float val of a Cell */ return(vp->fval); } -static char *get_inf_nan(double d) +static const char *get_inf_nan(double d) { if (isinf(d)) { return (d < 0 ? "-inf" : "+inf"); @@ -432,7 +432,7 @@ static char *get_str_val(Cell *vp, char **fmt) /* get string val of a Cel { char s[256]; double dtemp; - char *p; + const char *p; if ((vp->tval & (NUM | STR)) == 0) funnyvar(vp, "read value of"); |