Update scalar.h

diff_type