summaryrefslogtreecommitdiffstats
path: root/writecap
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--writecap/pcapio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/writecap/pcapio.c b/writecap/pcapio.c
index 58c49179..bdfb87ad 100644
--- a/writecap/pcapio.c
+++ b/writecap/pcapio.c
@@ -294,7 +294,7 @@ pcapng_write_block(FILE* pfile,
* getting the trailing block_total_length from the length argument gives
* us an implicit check of correctness without needing to do an endian swap
*/
- if (((length & 3) != 0) || (((gintptr)data & 3) != 0)) {
+ if (((length & 3) != 0) || (((intptr_t)data & 3) != 0)) {
*err = EINVAL;
return false;
}