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-26 09:32:12 +0300
commited3d74bfd563cfdde089e5a0394ac9192090c3f7 (patch)
tree464c1bebfd46b8ef298162a90c0aabf7f5c05eec /dbg_mlc.c
parente9c88faa482b9c5bc1562de36cd2fcb09d9a66c7 (diff)
downloadbdwgc-ed3d74bfd563cfdde089e5a0394ac9192090c3f7.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 4d547c15..920da6ce 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;