[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, feature/cpp-compile, updated. gawk-4.1.0-4167-g9c3d62
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, feature/cpp-compile, updated. gawk-4.1.0-4167-g9c3d629 |
Date: |
Tue, 27 Oct 2020 05:58:25 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, feature/cpp-compile has been updated
via 9c3d6299652aa135ed789837ad214a3b1924fe03 (commit)
from 15ab0462057ceaedd50f7e3ac0b57991ea38e046 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=9c3d6299652aa135ed789837ad214a3b1924fe03
commit 9c3d6299652aa135ed789837ad214a3b1924fe03
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Tue Oct 27 11:58:13 2020 +0200
Fix some C++ type warnings.
diff --git a/io.c b/io.c
index 311b38b..bf02699 100644
--- a/io.c
+++ b/io.c
@@ -1156,7 +1156,7 @@ getredirect(const char *str, int len)
struct redirect *rp;
for (rp = red_head; rp != NULL; rp = rp->next)
- if (strlen(rp->value) == len && memcmp(rp->value, str, len) ==
0)
+ if (strlen(rp->value) == (size_t) len && memcmp(rp->value, str,
len) == 0)
return rp;
return NULL;
@@ -3768,7 +3768,7 @@ again:
if (RSre->maybe_long) {
char *matchend = iop->off + reend;
- if (iop->dataend - matchend < RS->stlen)
+ if ((size_t) (iop->dataend - matchend) < RS->stlen)
return TERMNEAREND;
}
diff --git a/mpfr.c b/mpfr.c
index 8a58188..33afd44 100644
--- a/mpfr.c
+++ b/mpfr.c
@@ -1319,7 +1319,7 @@ mpg_tofloat(mpfr_ptr mf, mpz_ptr mz)
* Always set the precision to avoid hysteresis, since do_mpfr_func
* may copy our precision.
*/
- if (prec != mpfr_get_prec(mf))
+ if (prec != (size_t) mpfr_get_prec(mf))
mpfr_set_prec(mf, prec);
mpfr_set_z(mf, mz, ROUND_MODE);
diff --git a/node.c b/node.c
index 9ff935d..a59bcac 100644
--- a/node.c
+++ b/node.c
@@ -267,7 +267,7 @@ r_format_val(const char *format, int index, NODE *s)
*/
long num = (long) val;
- if (num < NVAL && num >= 0) {
+ if (num < (long) NVAL && num >= 0) {
sp = (char *) values[num];
s->stlen = 1;
} else {
diff --git a/profile.c b/profile.c
index e4fd88d..dbaf811 100644
--- a/profile.c
+++ b/profile.c
@@ -62,7 +62,7 @@ static NODE *pp_stack = NULL;
static NODE *func_params; /* function parameters */
static FILE *prof_fp; /* where to send the profile */
-static long indent_level = 0;
+static size_t indent_level = 0;
static const char tabs[] =
"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
static const size_t tabs_len = sizeof(tabs) - 1;
@@ -137,7 +137,7 @@ init_profiling_signals()
static void
indent(unsigned long long count)
{
- int i;
+ size_t i;
if (do_profile) {
if (count == 0)
diff --git a/re.c b/re.c
index ace989a..8ef7cd6 100644
--- a/re.c
+++ b/re.c
@@ -49,7 +49,7 @@ make_regexp(const char *s, size_t len, bool ignorecase, bool
dfa, bool canfatal)
int c, c2;
static bool first = true;
static bool no_dfa = false;
- int i;
+ size_t i;
static struct dfa* dfaregs[2] = { NULL, NULL };
static bool nul_warned = false;
-----------------------------------------------------------------------
Summary of changes:
io.c | 4 ++--
mpfr.c | 2 +-
node.c | 2 +-
profile.c | 4 ++--
re.c | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, feature/cpp-compile, updated. gawk-4.1.0-4167-g9c3d629,
Arnold Robbins <=