commit 140dd9d585d956c961ba63c573ec72d3eea30f38
parent c4e8be0ddeeab61435840eb29f640bcda4221bf4
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Fri, 12 Feb 2021 12:30:12 +0100
Change an unneeded size_t to an unsigned
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/stardis-compute.c b/src/stardis-compute.c
@@ -174,7 +174,7 @@ check_probe_conform_to_type
(const struct stardis* stardis,
const int move2boundary,
double pos[3],
- size_t* iprim,
+ unsigned* iprim,
double uv[2])
{
res_T res = RES_OK;
@@ -371,7 +371,7 @@ compute_probe(struct stardis* stardis, struct time* start)
{
res_T res = RES_OK;
double uv[2] = { 0,0 };
- size_t iprim = SIZE_MAX;
+ unsigned iprim = UINT_MAX;
struct sdis_green_function* green = NULL;
struct sdis_estimator* estimator = NULL;
struct dump_path_context dump_ctx;
@@ -448,7 +448,7 @@ compute_probe_on_interface(struct stardis* stardis, struct time* start)
{
res_T res = RES_OK;
double uv[2] = { 0,0 };
- size_t iprim = SIZE_MAX;
+ unsigned iprim = UINT_MAX;
struct sdis_estimator* estimator = NULL;
struct sdis_green_function* green = NULL;
struct dump_path_context dump_ctx;
@@ -459,7 +459,7 @@ compute_probe_on_interface(struct stardis* stardis, struct time* start)
ASSERT(stardis && start && (stardis->mode & MODE_PROBE_COMPUTE_ON_INTERFACE));
ERR(check_probe_conform_to_type(stardis, 1, stardis->probe, &iprim, uv));
- ASSERT(iprim != SIZE_MAX);
+ ASSERT(iprim != UINT_MAX);
args.nrealisations = stardis->samples;
args.iprim = iprim;