Skip to content
Snippets Groups Projects
Commit 4395ae23 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

cli: use static_cast in execution of Dot

parent a45ab299
No related branches found
No related tags found
1 merge request!179C casts to C++ casts redesign
......@@ -41,7 +41,7 @@ void Dot::run ( const std::string & data, const std::string & outputType, const
throw exception::CommonException ( "Dot: Failed to spawn child process." );
} else {
close ( fd [ 0 ] );
if ( write ( fd [ 1 ], data.c_str ( ), data.size ( ) + 1 ) != ( ssize_t ) data.size ( ) + 1 )
if ( write ( fd [ 1 ], data.c_str ( ), data.size ( ) + 1 ) != static_cast < ssize_t > ( data.size ( ) ) + 1 )
throw exception::CommonException ( "Dot: Failed to write data to dot child process." );
 
close ( fd [ 1 ] );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment