mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:35:41 +00:00
widl: Don't assume that host void* is the same size as target void*
svn path=/trunk/; revision=38212
This commit is contained in:
parent
2f7e224584
commit
5c760c2d22
1 changed files with 7 additions and 1 deletions
|
@ -823,7 +823,13 @@ size_t type_memsize(const type_t *t, unsigned int *align)
|
||||||
}
|
}
|
||||||
else if (is_ptr(t) || is_conformant_array(t))
|
else if (is_ptr(t) || is_conformant_array(t))
|
||||||
{
|
{
|
||||||
size = sizeof(void *);
|
#if defined(TARGET_i386)
|
||||||
|
size = 4;
|
||||||
|
#elif defined(TARGET_amd64)
|
||||||
|
size = 8;
|
||||||
|
#else
|
||||||
|
#error Unsupported CPU
|
||||||
|
#endif
|
||||||
if (size > *align) *align = size;
|
if (size > *align) *align = size;
|
||||||
}
|
}
|
||||||
else switch (t->type)
|
else switch (t->type)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue