Fix warning in memarray