fixed saveSmat overflow
fixed saveSmat overflow

codeaudit/BIDMat,codeaudit/BIDMat,codeaudit/BIDMat,phlip9/BIDMat,phlip9/BIDMat,codeaudit/BIDMat,codeaudit/BIDMat,phlip9/BIDMat,phlip9/BIDMat,phlip9/BIDMat