about summary refs log tree commit diff
path: root/stdio-common/tst-fseek.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tst-fseek.c')
-rw-r--r--stdio-common/tst-fseek.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdio-common/tst-fseek.c b/stdio-common/tst-fseek.c
index 461bb5491d..8992f7d456 100644
--- a/stdio-common/tst-fseek.c
+++ b/stdio-common/tst-fseek.c
@@ -167,7 +167,7 @@ main (void)
     }
 
   /* Go back to the beginning of the file: relative.  */
-  if (fseek (fp, -(sizeof (outstr) - 1), SEEK_CUR) != 0)
+  if (fseek (fp, -((int) sizeof (outstr) - 1), SEEK_CUR) != 0)
     {
       printf ("%d: fseek(fp, 0, SEEK_SET) failed\n", __LINE__);
       result = 1;
@@ -194,7 +194,7 @@ main (void)
     }
 
   /* Now with fseeko.  */
-  if (fseeko (fp, -(sizeof (outstr) - 1), SEEK_CUR) != 0)
+  if (fseeko (fp, -((int) sizeof (outstr) - 1), SEEK_CUR) != 0)
     {
       printf ("%d: fseeko(fp, 0, SEEK_SET) failed\n", __LINE__);
       result = 1;
@@ -221,7 +221,7 @@ main (void)
     }
 
   /* Go back to the beginning of the file: from the end.  */
-  if (fseek (fp, -(sizeof (outstr) - 1), SEEK_END) != 0)
+  if (fseek (fp, -((int) sizeof (outstr) - 1), SEEK_END) != 0)
     {
       printf ("%d: fseek(fp, 0, SEEK_SET) failed\n", __LINE__);
       result = 1;
@@ -248,7 +248,7 @@ main (void)
     }
 
   /* Now with fseeko.  */
-  if (fseeko (fp, -(sizeof (outstr) - 1), SEEK_END) != 0)
+  if (fseeko (fp, -((int) sizeof (outstr) - 1), SEEK_END) != 0)
     {
       printf ("%d: fseeko(fp, 0, SEEK_SET) failed\n", __LINE__);
       result = 1;