From d077488e2f14a720eede5ab2f64cb5a999e6d636 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 8 Jan 2017 22:08:15 +0100 Subject: [PATCH] Avoid warnings due to implicit time conversions. Signed-off-by: Heinrich Schuchardt --- src/api/mcfrelax.c | 6 +++--- src/proxy/proxy.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/mcfrelax.c b/src/api/mcfrelax.c index c5e929f..b618792 100644 --- a/src/api/mcfrelax.c +++ b/src/api/mcfrelax.c @@ -157,12 +157,12 @@ int glp_mincost_relax4(glp_graph *G, int v_rhs, int a_low, int a_cap, /* substitute x = x' + low, where 0 <= x' <= cap - low */ csa.u[k] = (int)(cap - low); /* correct demands at endpoints of k-th arc */ - if (overflow(csa.dfct[a->tail->i], +low)) + if (overflow(csa.dfct[a->tail->i], (int) +low)) { ret = GLP_ERANGE; goto done; } - csa.dfct[a->tail->i] += low; - if (overflow(csa.dfct[a->head->i], -low)) + csa.dfct[a->tail->i] += (int) low; + if (overflow(csa.dfct[a->head->i], (int) -low)) { ret = GLP_ERANGE; goto done; } diff --git a/src/proxy/proxy.c b/src/proxy/proxy.c index 7d89000..c9789c2 100644 --- a/src/proxy/proxy.c +++ b/src/proxy/proxy.c @@ -165,7 +165,7 @@ int dir; /* Minimization or maximization problem */ int ncols; /* Number of structural variables of the problem */ -time_t GLOtstart; /* starting time of the algorithm */ +double GLOtstart; /* starting time of the algorithm */ glp_prob *lp_ref; /* glp problem for refining only*/ -- 2.11.0