Fix a few compiler warnings.

pull/97/head
whitequark 2016-10-12 14:36:52 +00:00
parent 363f5c1ab8
commit 291e16e549
2 changed files with 5 additions and 2 deletions

View File

@ -750,8 +750,10 @@ const char *DxfFileWriter::lineTypeName(StipplePattern stippleType) {
case StipplePattern::FREEHAND:
case StipplePattern::ZIGZAG:
/* no corresponding DXF line type */
return "CONTINUOUS";
break;
}
return "CONTINUOUS";
}
//-----------------------------------------------------------------------------

View File

@ -303,7 +303,8 @@ Canvas::Stroke Style::Stroke(hStyle hs) {
}
Canvas::Stroke Style::Stroke(int hsv) {
return Style::Stroke(hStyle{hsv});
hStyle hs = { (uint32_t) hsv };
return Style::Stroke(hs);
}
//-----------------------------------------------------------------------------