]> granicus.if.org Git - strace/blobdiff - lseek.c
Fix explicit casts of signed integer types to unsigned long long
[strace] / lseek.c
diff --git a/lseek.c b/lseek.c
index cfc6b586e9675b33167a6a629f328cbecd084cce..133ddd853bda373bc38726b607ceb8348f8d36f8 100644 (file)
--- a/lseek.c
+++ b/lseek.c
@@ -108,8 +108,8 @@ SYS_FUNC(llseek)
        if (entering(tcp)) {
                printfd(tcp, tcp->u_arg[0]);
                tprintf(", %lld, ",
-                       ((unsigned long long) (unsigned long) tcp->u_arg[1]) << 32
-                       | (unsigned long long) (unsigned long) tcp->u_arg[2]);
+                       (widen_to_ull(tcp->u_arg[1]) << 32)
+                       | widen_to_ull(tcp->u_arg[2]));
        } else {
                printnum_int64(tcp, tcp->u_arg[3], "%" PRIu64);
                tprints(", ");