substr: fix casting during compilation
Merge branch 'master' into fix-myria-web-221
Merge branch 'master' into fix-myria-web-221
Merge pull request #366 from uwescience/fix-myria-web-221

substr: fix casting during compilation