Skip to content

Commit

Permalink
Force daysFromBuildID() to return an int so that mingw windres doesn'…
Browse files Browse the repository at this point in the history
…t fail.

Bug #508879 r=bsmedberg
  • Loading branch information
Chris Seawood committed Aug 16, 2009
1 parent cbcbbb6 commit 8c58120
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions config/version_win.pl
Expand Up @@ -54,8 +54,9 @@ sub daysFromBuildID
$d || die("Unrecognized buildid string.");

my $secondstodays = 60 * 60 * 24;
return (POSIX::mktime(00, 00, 00, $d, $m - 1, $y - 1900) -
POSIX::mktime(00, 00, 00, 01, 00, 100)) / $secondstodays;
return sprintf("%d",
(POSIX::mktime(00, 00, 00, $d, $m - 1, $y - 1900) -
POSIX::mktime(00, 00, 00, 01, 00, 100)) / $secondstodays);
}

#Creates version resource file
Expand Down
5 changes: 3 additions & 2 deletions js/src/config/version_win.pl
Expand Up @@ -54,8 +54,9 @@ sub daysFromBuildID
$d || die("Unrecognized buildid string.");

my $secondstodays = 60 * 60 * 24;
return (POSIX::mktime(00, 00, 00, $d, $m - 1, $y - 1900) -
POSIX::mktime(00, 00, 00, 01, 00, 100)) / $secondstodays;
return sprintf("%d",
(POSIX::mktime(00, 00, 00, $d, $m - 1, $y - 1900) -
POSIX::mktime(00, 00, 00, 01, 00, 100)) / $secondstodays);
}

#Creates version resource file
Expand Down

0 comments on commit 8c58120

Please sign in to comment.