Maybe just return int (64 or 32)?  Should clean up the needless ternary operator in the log line.