PDA

Просмотр полной версии : Fix clang build


newsbot
14.10.2015, 06:25
Автор: cyberium


<pre style='white-space:pre-wrap;width:81ex'>Fix clang build

The build failed with the following error:
non-constant-expression cannot be narrowed from type 'unsigned long' to
'uint32' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]

This comes from the switch to C++11, the fix is to explicitely cast the
type (we know that it'll still fit into the smaller type).</pre>


Подробнее... (https://github.com/cmangos/mangos-wotlk/commit/731e86da169beed18d45c9ee866521d6115c316f)