e2 vector fix inrange

+ remove c style
Merge pull request #399 from natrim/patch-1

e2 vector fix inrange