fix for #349 mixed types
- changed return type to int
Merge pull request #355 from robstoll/fix-for-349-mixed-types

fix for #349 mixed types