cpp: support for 64-bit constructors

Make constructors work in a 64-bit build.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
Nicolas Pitre 2019-07-30 17:38:00 -04:00 committed by Andrew Boie
commit 2bdfede0f8
2 changed files with 11 additions and 2 deletions

View file

@ -35,7 +35,7 @@ void __do_global_ctors_aux(void)
{
unsigned int nCtors;
nCtors = (unsigned int)__CTOR_LIST__[0];
nCtors = (unsigned long)__CTOR_LIST__[0];
while (nCtors >= 1U) {
__CTOR_LIST__[nCtors--]();