aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--editcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/editcap.c b/editcap.c
index fb7532d9d3..40a6a81746 100644
--- a/editcap.c
+++ b/editcap.c
@@ -1399,8 +1399,8 @@ main(int argc, char *argv[])
block_start = phdr->ts;
}
if (secs_per_block != 0) {
- while ((phdr->ts.secs - block_start.secs > secs_per_block)
- || (phdr->ts.secs - block_start.secs == secs_per_block
+ while (((guint32)(phdr->ts.secs - block_start.secs) > secs_per_block)
+ || ((guint32)(phdr->ts.secs - block_start.secs) == secs_per_block
&& phdr->ts.nsecs >= block_start.nsecs )) { /* time for the next file */
if (!wtap_dump_close(pdh, &write_err)) {