]> granicus.if.org Git - strace/blobdiff - io.c
Fix signed/unsigned problems
[strace] / io.c
diff --git a/io.c b/io.c
index 823f9c3705c349f6e404e7f913d75827355c730e..3f1022c6031c0b3dffa368aa6e211b376f78e073 100644 (file)
--- a/io.c
+++ b/io.c
@@ -162,7 +162,7 @@ struct tcb *tcp;
 #else
                tprintf(", %lu, %llu", tcp->u_arg[2],
                                (((unsigned long long) tcp->u_arg[4]) << 32
-                                | tcp->u_arg[3]));
+                                | (unsigned) tcp->u_arg[3]));
 #endif
        }
        return 0;
@@ -181,7 +181,7 @@ struct tcb *tcp;
 #else
                tprintf(", %lu, %llu", tcp->u_arg[2],
                                (((unsigned long long) tcp->u_arg[4]) << 32
-                                | tcp->u_arg[3]));
+                                | (unsigned) tcp->u_arg[3]));
 #endif
        }
        return 0;
@@ -199,7 +199,7 @@ struct tcb *tcp;
        if (entering(tcp)) {
                tprintf("%ld, %ld, %llu, %lu", tcp->u_arg[0], tcp->u_arg[1],
                        (((unsigned long long) tcp->u_arg[3]) << 32 |
-                        tcp->u_arg[2]), tcp->u_arg[4]);
+                        (unsigned) tcp->u_arg[2]), tcp->u_arg[4]);
        } else {
                off_t offset;