picasso_assembler: Correct ending square-bracket check in parseReg

Signed-off-by: Lioncash <mathew1800@gmail.com>
This commit is contained in:
Lioncash 2017-12-27 19:49:11 -05:00 committed by fincs
parent 97814558db
commit 708ce762e0

View File

@ -692,7 +692,7 @@ static int parseReg(char* pos, int& outReg, int& outSw, int* idxType = NULL)
if (offPos)
{
dotPos = strchr(offPos, ']');
if (!pos)
if (!dotPos)
return throwError("missing closing bracket: %s\n", pos);
*dotPos++ = 0;
*offPos++ = 0;