summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/gentls_offsets
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/gentls_offsets')
-rwxr-xr-xwinsup/cygwin/gentls_offsets2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/gentls_offsets b/winsup/cygwin/gentls_offsets
index 0ab6b64ab..2c96487d4 100755
--- a/winsup/cygwin/gentls_offsets
+++ b/winsup/cygwin/gentls_offsets
@@ -56,7 +56,7 @@ main(int argc, char **argv)
{
$struct *foo;
# define foo_beg ((char *) foo)
-# define offset(f) (-CYGTLS_PADSIZE + ((char *) &(foo->f)) - foo_beg)
+# define offset(f) ((int) (((char *) &(foo->f)) - foo_beg) - CYGTLS_PADSIZE)
# define poffset(f) (((char *) &(foo->f)) - ((char *) foo))
EOF
print TMP 'puts ("//;# autogenerated: Do not edit.\n");', "\n\n";