added explicit cast to explicitly narrow precision for security purposes

This commit is contained in:
Mike Yaacoub
2022-12-19 17:39:30 -05:00
parent 3013dc315f
commit 8fd13fcddf

View File

@@ -39,7 +39,7 @@ public class BundledFrontmatterInjector implements BundledMarkdownProcessor {
if (name.length()>i) {
int ord = name.charAt(i) - 'a';
double addend = Math.pow(pow, i) * ord;
sum += addend;
sum += (int)addend;
} else {
break;
}