mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 02:00:21 +01:00
ralloc: Move declarations before statements.
Trivial. Should fix MSVC build.
This commit is contained in:
parent
c7b88ed16e
commit
392f6cfced
1 changed files with 4 additions and 2 deletions
|
|
@ -107,11 +107,13 @@ void *
|
|||
ralloc_size(const void *ctx, size_t size)
|
||||
{
|
||||
void *block = calloc(1, size + sizeof(ralloc_header));
|
||||
ralloc_header *info;
|
||||
ralloc_header *parent;
|
||||
|
||||
if (unlikely(block == NULL))
|
||||
return NULL;
|
||||
ralloc_header *info = (ralloc_header *) block;
|
||||
ralloc_header *parent = ctx != NULL ? get_header(ctx) : NULL;
|
||||
info = (ralloc_header *) block;
|
||||
parent = ctx != NULL ? get_header(ctx) : NULL;
|
||||
|
||||
add_child(parent, info);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue