From 33cb3087b590637c6b471d7339037b7ff2322b08 Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Mon, 8 Feb 2016 18:42:53 +0100 Subject: [PATCH] efs.c: Fix incorrect type of local variables 'newsize' and 'oldsize'. These variable are only ever assigned to/from s64 values, so their type should be s64, not u64. This fixes a compiler warning about signed/unsigned comparison. --- libntfs-3g/efs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libntfs-3g/efs.c b/libntfs-3g/efs.c index 14a2cb51..443426cf 100644 --- a/libntfs-3g/efs.c +++ b/libntfs-3g/efs.c @@ -321,8 +321,8 @@ int ntfs_set_efs_info(ntfs_inode *ni, const char *value, size_t size, int ntfs_efs_fixup_attribute(ntfs_attr_search_ctx *ctx, ntfs_attr *na) { - u64 newsize; - u64 oldsize; + s64 newsize; + s64 oldsize; le16 appended_bytes; u16 padding_length; ntfs_inode *ni;