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:
parent
2e3bd4b51d
commit
2bdfede0f8
2 changed files with 11 additions and 2 deletions
|
@ -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--]();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue