uint32_t is unsigned long on 32-bit ARM and unsigned on 64-bit x64. Add type specifier to avoid having warnings when compiling on Linux