Fix undefined shifts (#1158)

Use multiply instead
Found by oss-fuzz
2 files changed