Here you are contradicting the patch. The function should return uint32_t so just leave it as it was before otherwise you are doing the same thing the other way around: a function that returns uint32_t by casting *wsp which is an int32_t to uint32_t.