QPostEventList: change pointer comparison to integer comparison
authorMarc Mutz <marc.mutz@kdab.com>
Thu, 27 Sep 2012 12:31:12 +0000 (14:31 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 27 Sep 2012 21:51:30 +0000 (23:51 +0200)
commitf9547c89ea9fd0e6d571db840c5cadab079df607
tree6f408928dd85bc758a5b264595490872b563dfc0
parentb0a7974c6af1e81876caf52602e5c9be7dde5077
QPostEventList: change pointer comparison to integer comparison

This is exactly the type of pointer arithmetics that GCC likes to
miscompile.

Just use offset >= size() (=subtract begin() from both sides).

Change-Id: Ifb13652d7b96bf4c06727d9c965516e95d16ab5c
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/corelib/thread/qthread_p.h