mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 01:10:22 +00:00
Force daysFromBuildID() to return an int so that mingw windres doesn't fail.
Bug #508879 r=bsmedberg
This commit is contained in:
parent
cbcbbb6c30
commit
8c58120eeb
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user