diff options
| -rw-r--r-- | compiler-rt/lib/builtins/moddi3.c | 6 | ||||
| -rw-r--r-- | compiler-rt/lib/builtins/modti3.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/compiler-rt/lib/builtins/moddi3.c b/compiler-rt/lib/builtins/moddi3.c index f2b7cd4961d..a04279e3875 100644 --- a/compiler-rt/lib/builtins/moddi3.c +++ b/compiler-rt/lib/builtins/moddi3.c @@ -24,7 +24,7 @@ __moddi3(di_int a, di_int b) b = (b ^ s) - s; /* negate if s == -1 */ s = a >> bits_in_dword_m1; /* s = a < 0 ? -1 : 0 */ a = (a ^ s) - s; /* negate if s == -1 */ - di_int r; - __udivmoddi4(a, b, (du_int*)&r); - return (r ^ s) - s; /* negate if s == -1 */ + du_int r; + __udivmoddi4(a, b, &r); + return ((di_int)r ^ s) - s; /* negate if s == -1 */ } diff --git a/compiler-rt/lib/builtins/modti3.c b/compiler-rt/lib/builtins/modti3.c index da1b3b45a64..d505c07ac16 100644 --- a/compiler-rt/lib/builtins/modti3.c +++ b/compiler-rt/lib/builtins/modti3.c @@ -26,9 +26,9 @@ __modti3(ti_int a, ti_int b) b = (b ^ s) - s; /* negate if s == -1 */ s = a >> bits_in_tword_m1; /* s = a < 0 ? -1 : 0 */ a = (a ^ s) - s; /* negate if s == -1 */ - ti_int r; - __udivmodti4(a, b, (tu_int*)&r); - return (r ^ s) - s; /* negate if s == -1 */ + tu_int r; + __udivmodti4(a, b, &r); + return ((ti_int)r ^ s) - s; /* negate if s == -1 */ } #endif /* CRT_HAS_128BIT */ |

