From: Mikko Rasa Date: Sun, 22 Mar 2015 16:01:58 +0000 (+0200) Subject: Add explicit typecast to avoid infinite recursion X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=70a640189a14fcf9a52ccb21752ac45a4b2e2233;p=r2c2.git Add explicit typecast to avoid infinite recursion --- 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))); } }