Fix compilation of qserialport auto-test with Qt4


In qt4 the macro QCOMPARE can not make type cast between "int" and
"qint64", though on qt5 there are no problems.

Tested build on Lixux 64bit with Qt4 and then Qt5.

Change-Id: I258f8ee4d26b65cc81720d66714ef69df23e7266
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
commitd39e916c6f397801ac329968515d90f0d1b9ef8f
parentd27ce6689855550ff89c5f84d38bded3c3da1dca
authorDenis Shienkov <denis.shienkov@gmail.com>
committerThe Qt Project <gerrit-noreply@qt-project.org>
commit timeFri, 23 May 2014 14:55:54 +0200