comparison of unsigned expression < 0

Issue #30 new
Lam Pham-Sy created an issue

The error occurs for compiling in mac

error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]

raised from #1090 of src/erasurecode.c

if (md->idx < 0 || (md->idx > (k + m))) {
        return 1;
}

Should the first condition be removed?

Comments (2)

  1. Log in to comment