]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/trackchain.cpp
Add explicit typecast to avoid infinite recursion
[r2c2.git] / 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)));
        }
 }