comparison of unsigned expression < 0 is always false [-Werror=type-limits]
Change-Id: I8cee625056bcde1f2a3cb2b9ce704b33be5bd725
for (uint32_t n = 0; n < outline->cntrsCnt; ++n) {
auto last = outline->cntrs[n];
- if (last < 0) goto invalid_outline;
-
auto limit = outline->pts + last;
assert(limit);
Result Shape::appendPath(const PathCommand *cmds, uint32_t cmdCnt, const Point* pts, uint32_t ptsCnt) noexcept
{
- if (cmdCnt < 0 || ptsCnt < 0 || !pts || !ptsCnt) return Result::InvalidArguments;
+ if (cmdCnt == 0 || ptsCnt == 0 || !pts || !ptsCnt) return Result::InvalidArguments;
IMPL->path->grow(cmdCnt, ptsCnt);
IMPL->path->append(cmds, cmdCnt, pts, ptsCnt);