Change the 'result_type' from unsigned to 'uint_fast32_t'. This eliminates truncation warnings on Linux