Changeset 451:f4a1e8ad3847

Show
Ignore:
Timestamp:
01/08/2013 02:20:08 PM (5 months ago)
Author:
Andreas Schaefer <gentryx@…>
Branch:
default
Message:

coding style

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/misc/alignedallocator.h

    r450 r451  
    4242        // array's start. Ugly, but it works. 
    4343        char *chunk = std::allocator<char>().allocate(upsize(n)); 
    44         if (chunk == 0) 
     44        if (chunk == 0) { 
    4545            return (pointer)chunk; 
     46        } 
     47 
    4648        size_type offset = (size_type)chunk % ALIGNMENT; 
    4749        size_type correction = ALIGNMENT - offset; 
     
    5557    void deallocate(pointer p, size_type n) 
    5658    { 
    57         if (p == 0) 
     59        if (p == 0) { 
    5860            return; 
     61        } 
     62 
    5963        char *actual; 
    6064        // retrieve the original pointer which sits in front of its