From 8cb01aae180ab4d90ba7ac2f654bad9787dbf8d5 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 15 Aug 2012 17:44:29 +1000 Subject: [PATCH] use correct type in known_cast dynamic test --- types/casts.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/casts.hpp b/types/casts.hpp index 4e35c622..24cef474 100644 --- a/types/casts.hpp +++ b/types/casts.hpp @@ -122,8 +122,8 @@ size_cast (const V v) { template T* known_cast (V *v) { - CHECK_HARD (nullptr != dynamic_cast (v)); - return static_cast (v); + CHECK_HARD (nullptr != dynamic_cast (v)); + return static_cast (v); }