设等差数列{an}的前n项和为Sn,若Sm-1=-2,Sm=0,Sm+1=3,则m=(  )