raw/ifpga: fix unintentional integer overflow