PDA

Просмотр полной версии : Fix the type of a local variable.


newsbot
04.11.2015, 08:43
Автор: evil-at-wow


<pre style='white-space:pre-wrap;width:81ex'>Fix the type of a local variable.

This fixes compile errors on some systems, such as GCC on Mac OS X.

The intention has always been to use `void ACE_Time_Value::msec(ACE_UINT64 &)`.
This has always worked fine because there was no real difference between the
two types uint64 and ACE_UINT64, because the former was a typedef of the latter.
See older revisions of src/framework/Platform/Define.h.

But now uint64 is a C++11 fixed width integer type, which will typically be
`unsigned long long`, while ACE_UINT64 is still `unsigned long` on systems
using the LP64 data model (Linux, Mac OS X, BSD) - see the CMaNGOS modification
in dep.ACE_wrappers/configure. The difference between the types then causes an
ambigious call compile error, because there are other msec functions taking
arguments of type long and int.

(based on cmangos/mangos-wotlk@931a7ba)

Signed-off-by: Xfurry <xfurry@scriptdev2.com></pre>


Подробнее... (https://github.com/cmangos/mangos-cata/commit/7f65da6a18951e6c8e7ad8d88bac186b0def3eb6)