Get rid of ambiguous overload for xgetbv.
authorJan-Arve Saether <jan-arve.saether@nokia.com>
Mon, 21 May 2012 08:51:18 +0000 (10:51 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 21 May 2012 10:54:48 +0000 (12:54 +0200)
commita55bc3da20894947d762b8805d279dbc4ec4473b
tree132d46a9fa67ccbf215b73c78b0b39d50d798b29
parentc2ffcfbf13fca908f89f31d0aca18f441868ac3f
Get rid of ambiguous overload for xgetbv.

The patch that broke this was assuming the signature of xgetbv was
_xgetbv(int). This lead to that there were no exact match for the
function resolver, thus the ambiguity.

Apparently, the signature of _xgetbv is _xgetbv(unsigned int).
Changing the static xgetbv to uint makes the match exact, thus no more
ambiguity.

Change-Id: I8db95e00a9fef264d7a1f84d02bb929db84e6e5a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
src/corelib/tools/qsimd.cpp