Skip to content

[Mono] Fix 4244 warnings. #69236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/mono/mono/arch/x86/x86-codegen.h
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@ mono_x86_patch_inline (guchar* code, gpointer target)
*/
#define x86_jump_code(inst,target) \
do { \
int t; \
ptrdiff_t t; \
x86_codegen_pre(&(inst), 2); \
t = (unsigned char*)(target) - (inst) - 2; \
if (x86_is_imm8(t)) { \
Expand Down Expand Up @@ -1783,7 +1783,7 @@ mono_x86_patch_inline (guchar* code, gpointer target)
#if defined(TARGET_X86)
#define x86_branch(inst,cond,target,is_signed) \
do { \
int __offset; \
ptrdiff_t __offset; \
guint8* __branch_start; \
x86_codegen_pre(&(inst), 2); \
__offset = (target) - (inst) - 2; \
Expand All @@ -1803,7 +1803,7 @@ mono_x86_patch_inline (guchar* code, gpointer target)

#define x86_branch(inst,cond,target,is_signed) \
do { \
int __offset = (target) - (inst) - 2; \
ptrdiff_t __offset = (target) - (inst) - 2; \
if (x86_is_imm8 ((__offset))) \
x86_branch8 ((inst), (cond), __offset, (is_signed)); \
else { \
Expand Down Expand Up @@ -1893,7 +1893,7 @@ mono_x86_patch_inline (guchar* code, gpointer target)

#define x86_call_code(inst,target) \
do { \
int _x86_offset; \
ptrdiff_t _x86_offset; \
_x86_offset = (unsigned char*)(target) - (inst); \
_x86_offset -= 5; \
x86_call_imm_body ((inst), _x86_offset); \
Expand Down
Loading