From c996f02008d5c56e4c0dc275200c294bf8196943 Mon Sep 17 00:00:00 2001 From: Jonathan M Davis Date: Tue, 7 Mar 2017 21:42:15 -0800 Subject: [PATCH] Small code simplification in core.time. We already have the type with Args[i], so there's no need to ask args[i] for its type. --- src/core/time.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/time.d b/src/core/time.d index 69c288d3b0..c4e1aeaa33 100644 --- a/src/core/time.d +++ b/src/core/time.d @@ -1140,9 +1140,9 @@ public: foreach(i, unit; units) { static if(unit == "nsecs") - args[i] = cast(typeof(args[i]))convert!("hnsecs", "nsecs")(hnsecs); + args[i] = cast(Args[i])convert!("hnsecs", "nsecs")(hnsecs); else - args[i] = cast(typeof(args[i]))splitUnitsFromHNSecs!unit(hnsecs); + args[i] = cast(Args[i])splitUnitsFromHNSecs!unit(hnsecs); } }