bugfix: qMax mismatched types compile failure on 32bit