diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-11-12 10:30:18 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-11-26 09:32:12 +0300 |
commit | ed3d74bfd563cfdde089e5a0394ac9192090c3f7 (patch) | |
tree | 464c1bebfd46b8ef298162a90c0aabf7f5c05eec /dbg_mlc.c | |
parent | e9c88faa482b9c5bc1562de36cd2fcb09d9a66c7 (diff) | |
download | bdwgc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |