Warning on converting int to bool fixed

This commit is contained in:
Grigory Serebryakov
2014-09-05 11:27:43 +04:00
parent 06a1c90679
commit 18c0511d3c
3 changed files with 6 additions and 6 deletions

View File

@@ -73,7 +73,7 @@ int main( int argc, char* argv[] )
double maxxangle = 1.1;
double maxyangle = 1.1;
double maxzangle = 0.5;
int showsamples = 0;
bool showsamples = false;
/* the samples are adjusted to this scale in the sample preview window */
double scale = 4.0;
int width = 24;
@@ -159,7 +159,7 @@ int main( int argc, char* argv[] )
}
else if( !strcmp( argv[i], "-show" ) )
{
showsamples = 1;
showsamples = true;
if( i+1 < argc && strlen( argv[i+1] ) > 0 && argv[i+1][0] != '-' )
{
double d;