Explicit cast to qint64 in order to make a 64-bit build work correctly

Signed-off-by: Simon Busch <morphis@gravedo.de>