From 8b32555eab42b9521d6f0655c4a19e51a0ff545d Mon Sep 17 00:00:00 2001 From: Igor Stepanov Date: Mon, 6 Oct 2014 21:28:33 +0000 Subject: [PATCH] fix datetime test --- std/datetime.d | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/std/datetime.d b/std/datetime.d index 9c7810cf7..48464b37c 100644 --- a/std/datetime.d +++ b/std/datetime.d @@ -33027,10 +33027,11 @@ version(unittest) : TimeZone.getTimeZone("America/Denver"); immutable ot = otherTZ.utcToTZ(0); - auto diffs = [0, lt, ot]; - auto diffAA = [0 : Rebindable!(immutable TimeZone)(UTC()), - lt : Rebindable!(immutable TimeZone)(LocalTime()), - ot : Rebindable!(immutable TimeZone)(otherTZ)]; + auto diffs = [0L, lt, ot]; + auto diffAA = [0L : Rebindable!(immutable TimeZone)(UTC())]; + diffAA[lt] = Rebindable!(immutable TimeZone)(LocalTime()); + diffAA[ot] = Rebindable!(immutable TimeZone)(otherTZ); + sort(diffs); testTZs = [diffAA[diffs[0]], diffAA[diffs[1]], diffAA[diffs[2]]];