Try to fix compilation error about the new threads default

This commit is contained in:
Alessandro Ranellucci 2016-11-27 18:18:01 +01:00
parent 01cd85f7cf
commit b8c4464a20
2 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ sub validate {
my $self = shift;
# -j, --threads
die "Invalid value for --threads\n"
die "Invalid value for --threads: " . $self->threads . "\n"
if $self->threads < 1;
# --layer-height

View File

@ -1249,7 +1249,7 @@ PrintConfigDef::PrintConfigDef()
def->min = 1;
def->max = 16;
{
int threads = boost::thread::hardware_concurrency();
unsigned int threads = boost::thread::hardware_concurrency();
if (threads == 0) threads = 2;
def->default_value = new ConfigOptionInt(threads);
}