Fix wrong type (not using typedef) in stack function.