]> git.tdb.fi Git - r2c2.git/commitdiff
Add explicit typecast to avoid infinite recursion
authorMikko Rasa <tdb@tdb.fi>
Sun, 22 Mar 2015 16:01:58 +0000 (18:01 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 22 Mar 2015 17:22:02 +0000 (19:22 +0200)
source/libr2c2/trackchain.cpp

index f354c6eac7054fb0d9f6c4c59f30578981e33acf..c6d615dcec3212ec0f262bb4eb9157b3dc889cb8 100644 (file)
@@ -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<int>(dir)));
        }
 }