fixed return value of ast_real::generate_quads