diff --git a/src/common/linux/dump_symbols.cc b/src/common/linux/dump_symbols.cc index 5c2d6254..8c211579 100644 --- a/src/common/linux/dump_symbols.cc +++ b/src/common/linux/dump_symbols.cc @@ -223,7 +223,8 @@ int LoadLineInfo(struct nlist *list, struct LineInfo line; while (cur_list < list_end && cur_list->n_type == N_SLINE) { line.rva_to_func = cur_list->n_value; - line.line_num = cur_list->n_desc; + // n_desc is a signed short + line.line_num = (unsigned short)cur_list->n_desc; func_info->line_info.push_back(line); ++cur_list; }