memif: fix gcc-10 build error on arm platform