Bugfix - assignment instead of comparison

based on warning from Watcom C32 1.9