Ignore:
Timestamp:
Aug 17, 2009, 1:20:41 PM (16 years ago)
Author:
[email protected]
Message:

2009-08-17 Xan Lopez <[email protected]>

Reviewed by Mark Rowe.

Fix build with FAST_MALLOC_MATCH_VALIDATION enabled.

  • wtf/FastMalloc.cpp: (WTF::fastMalloc): (WTF::fastCalloc): (WTF::fastRealloc):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r47092 r47382  
    227227
    228228#if ENABLE(FAST_MALLOC_MATCH_VALIDATION)
    229     void* result = tryFastMalloc(n);
     229    TryMallocReturnValue returnValue = tryFastMalloc(n);
     230    void* result;
     231    returnValue.getValue(result);
    230232#else
    231233    void* result = malloc(n);
     
    265267
    266268#if ENABLE(FAST_MALLOC_MATCH_VALIDATION)
    267     void* result = tryFastCalloc(n_elements, element_size);
     269    TryMallocReturnValue returnValue = tryFastCalloc(n_elements, element_size);
     270    void* result;
     271    returnValue.getValue(result);
    268272#else
    269273    void* result = calloc(n_elements, element_size);
     
    324328
    325329#if ENABLE(FAST_MALLOC_MATCH_VALIDATION)
    326     void* result = tryFastRealloc(p, n);
     330    TryMallocReturnValue returnValue = tryFastRealloc(p, n);
     331    void* result;
     332    returnValue.getValue(result);
    327333#else
    328334    void* result = realloc(p, n);
Note: See TracChangeset for help on using the changeset viewer.