Fixes (un)signed comparison warning in regex.c The warning actually hinted at an unchecked return value. As of this patch it is checked. Bug: 28585892 Change-Id: Ibc09903129d3dce4d8a7b98d0313ec743fb937b5