Easily, say you have a string "zzzzzzzzzzz". Ord(c) wil be 122, so the sequence is
H = 122 + (31* 0 ) = 122
H = 122 +(31*122) = 3902
H = 122 +(31*3902) = 121146
Which exceeds the 32767 limit for 16 bit ints, if it's a 32 but int, it won't take many more iterations to exceed that limit.