summaryrefslogtreecommitdiff
path: root/dbg_mlc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-11-12 10:30:18 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-11-12 20:45:19 +0300
commit5407e712dd7c381c857827cdaf2902158213e07d (patch)
treec340a42874df6108166253daef3f2299958c2fc8 /dbg_mlc.c
parente52e35343429108368986e4b28852bbe6e33f6e0 (diff)
downloadbdwgc-5407e712dd7c381c857827cdaf2902158213e07d.tar.gz
Eliminate 'casting signed to bigger unsigned int' CSA warning
* cord/cordprnt.c (CORD_vsprintf): Cast prec, width, max_size, res local variables to unsigned. * cord/tests/cordtest.c (test_basics): Change type of i local variable from int to size_t; cast c local variable to unsigned char. * dbg_mlc.c (GC_store_debug_info_inner): Do not cast linenum parameter. * include/private/dbg_mlc.h (oh.oh_string, oh.oh_int): Refine comment. * include/private/dbg_mlc.h (oh.oh_int): Change type from word to signed_word. * misc.c [!GC_GET_HEAP_USAGE_NOT_NEEDED] (fill_prof_stats): Cast GC_markers_m1 to signed_word first. * misc.c (GC_init): Cast space_divisor local variable to unsigned (instead of word). * misc.c [!MSWIN32 && !MSWINCE && !OS2 && !MACOS && !GC_ANDROID_LOG] (GC_write): Cast bytes_written local variable to unsigned (instead of size_t).
Diffstat (limited to 'dbg_mlc.c')
-rw-r--r--dbg_mlc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbg_mlc.c b/dbg_mlc.c
index a8bd8154..d09f309b 100644
--- a/dbg_mlc.c
+++ b/dbg_mlc.c
@@ -287,7 +287,7 @@ GC_INNER void *GC_store_debug_info_inner(void *p, word sz GC_ATTR_UNUSED,
((oh *)p) -> oh_bg_ptr = HIDE_BACK_PTR((ptr_t)0);
# endif
((oh *)p) -> oh_string = string;
- ((oh *)p) -> oh_int = (word)linenum;
+ ((oh *)p) -> oh_int = linenum;
# ifndef SHORT_DBG_HDRS
((oh *)p) -> oh_sz = sz;
((oh *)p) -> oh_sf = START_FLAG ^ (word)result;