From 89e90b962ffebc283c80cbc10caeb1e9a86a9732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Wed, 27 Jan 2016 23:11:32 +0100 Subject: [PATCH] Fix unit test. See #2. --- source/taggedalgebraic.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/taggedalgebraic.d b/source/taggedalgebraic.d index 136afe5..cd72d58 100644 --- a/source/taggedalgebraic.d +++ b/source/taggedalgebraic.d @@ -199,7 +199,7 @@ struct TaggedAlgebraic(U) if (is(U == union) || is(U == struct)) assert(ta.kind == TA.Kind.integer); assert(ta == 12); assert(cast(int)ta == 12); - assert(cast(short)ta == 12); + assert(cast(long)ta == 12); ta += 12; assert(ta == 24);