]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Check extra rounding using an int64.
authorWayne Davison <wayne@opencoder.net>
Thu, 18 Jun 2020 22:45:39 +0000 (15:45 -0700)
committerWayne Davison <wayne@opencoder.net>
Thu, 18 Jun 2020 22:45:39 +0000 (15:45 -0700)
rounding.c

index bf2ecd3152a21d6c23139c7988879dc3606d4d30..1bc353a854d96d22501eef523c8c30e465da629f 100644 (file)
 
 struct test {
        union file_extras extras[ARRAY_LEN];
-       struct file_struct file;
+       int64 test;
 };
 
 #define ACTUAL_SIZE    SIZEOF(struct test)
-#define EXPECTED_SIZE  (SIZEOF(union file_extras) * ARRAY_LEN + SIZEOF(struct file_struct))
+#define EXPECTED_SIZE  (SIZEOF(union file_extras) * ARRAY_LEN + SIZEOF(int64))
 
  int main(UNUSED(int argc), UNUSED(char *argv[]))
 {