From 70a640189a14fcf9a52ccb21752ac45a4b2e2233 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 22 Mar 2015 18:01:58 +0200 Subject: [PATCH] Add explicit typecast to avoid infinite recursion --- source/libr2c2/trackchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libr2c2/trackchain.cpp b/source/libr2c2/trackchain.cpp index f354c6e..c6d615d 100644 --- a/source/libr2c2/trackchain.cpp +++ b/source/libr2c2/trackchain.cpp @@ -184,7 +184,7 @@ void operator<<(LexicalConverter &conv, TrackChain::Direction dir) case TrackChain::UNSPECIFIED: conv.result("UNSPECIFIED"); return; case TrackChain::UP: conv.result("UP"); return; case TrackChain::DOWN: conv.result("DOWN"); return; - default: throw lexical_error(format("conversion of Direction(%d) to string", dir)); + default: throw lexical_error(format("conversion of Direction(%d) to string", static_cast(dir))); } } -- 2.43.0