aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-01-19 18:44:47 +0100
committerSverker Eriksson <[email protected]>2016-01-19 18:44:47 +0100
commitc707fec731c5d5bfd1b9888b5413d7806c03064d (patch)
tree961ed574a86bfb5b9b28fac9099dd52984b8fec0
parentaa93302de0b56845411a3e89dcea07958f676dfd (diff)
parentdaa9ca6ff54697b18d407ae91a91b587662dfc99 (diff)
downloadotp-c707fec731c5d5bfd1b9888b5413d7806c03064d.tar.gz
otp-c707fec731c5d5bfd1b9888b5413d7806c03064d.tar.bz2
otp-c707fec731c5d5bfd1b9888b5413d7806c03064d.zip
Merge branch 'maint'
-rw-r--r--erts/emulator/test/alloc_SUITE_data/threads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/test/alloc_SUITE_data/threads.c b/erts/emulator/test/alloc_SUITE_data/threads.c
index a8a6a23695..2f5f841e3d 100644
--- a/erts/emulator/test/alloc_SUITE_data/threads.c
+++ b/erts/emulator/test/alloc_SUITE_data/threads.c
@@ -396,7 +396,7 @@ alloc_op(int t_no, Allctr_t *a, block *bp, int id, int clean_up)
bp->p = (unsigned char *) ALLOC(a, bp->s);
if(!bp->p)
fail(t_no, "ALLOC(%lu) failed [id=%d])\n", bp->s, id);
- memset((void *) bp->p, id, (size_t) bp->s);
+ memset((void *) bp->p, (unsigned char)id, (size_t) bp->s);
}
else {
unsigned char *p = (unsigned char *) REALLOC(a, bp->p, bp->as[bp->i]);
@@ -406,7 +406,7 @@ alloc_op(int t_no, Allctr_t *a, block *bp, int id, int clean_up)
if(bp->s < bp->as[bp->i]) {
CHECK_BLOCK_DATA(t_no, p, bp->s, id);
- memset((void *) p, id, (size_t) bp->as[bp->i]);
+ memset((void *) p, (unsigned char)id, (size_t) bp->as[bp->i]);
}
else
CHECK_BLOCK_DATA(t_no, p, bp->as[bp->i], id);