summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorWichert Akkerman <wichert@deephackmode.org>2002-03-31 19:00:02 +0000
committerWichert Akkerman <wichert@deephackmode.org>2002-03-31 19:00:02 +0000
commit7ab47b63e3d58dfbe32ba909b222c1bc2a88c5c0 (patch)
treed0a5ee84c07207187db22de8fa8465c73326031f /io.c
parent0fddf434f3a7c6a18522643ce01c7454350a0a30 (diff)
downloadstrace-7ab47b63e3d58dfbe32ba909b222c1bc2a88c5c0.tar.gz
strace-7ab47b63e3d58dfbe32ba909b222c1bc2a88c5c0.tar.bz2
strace-7ab47b63e3d58dfbe32ba909b222c1bc2a88c5c0.tar.xz
Fix signed/unsigned problems
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/io.c b/io.c
index 823f9c3..3f1022c 100644
--- 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;