commit bb602b656fff49e02245027368b967020be316f7
parent 900a99d42cbd78861a10a3698aac0de8c08a5296
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 24 Nov 2015 11:25:34 +0100
Fix a cast pointer issue
We assumed that sizeof(unsigned long) == sizeof(size_t).
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/schiff_histogram.c b/src/schiff_histogram.c
@@ -138,7 +138,7 @@ parse_histogram_header
if(res == RES_OK) res = RES_BAD_ARG;
goto error;
}
- *size = (size_t)l;
+ *size = (unsigned long)l;
exit:
str_release(&buf);
@@ -189,7 +189,7 @@ schiff_histogram_load_stream
double step;
double val;
double accum_proba;
- size_t nentries;
+ unsigned long nentries;
res_T res = RES_OK;
ASSERT(histo && stream_name && stream_name);