this test probably isn't doing what you expect. you've already tried to subtract two unsigned integers from each other with the possibility that the result would wrap.

why not: if (rseq > sseq)?