Changeset 2ff42f4


Ignore:
Timestamp:
Aug 4, 2020, 7:35:19 AM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
71dfe49
Parents:
25cbd99
Message:

fix 32-bit heap-test warning for format codes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/heap.cfa

    r25cbd99 r2ff42f4  
    1010// Created On       : Tue Nov  6 17:54:56 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Aug  3 16:40:06 2020
    13 // Update Count     : 54
     12// Last Modified On : Tue Aug  4 06:36:17 2020
     13// Update Count     : 56
    1414//
    1515
     
    354354        for ( size_t a = libAlign() + libAlign(); a <= limit; a += a ) { // generate powers of 2
    355355                // initial N byte allocation
    356                 char *area = (char *)cmemalign( a, 1, amount ); // aligned N-byte allocation
     356                char * area = (char *)cmemalign( a, 1, amount ); // aligned N-byte allocation
    357357                //sout | alignments[a] | area | endl;
    358358                if ( (size_t)area % a != 0 || malloc_alignment( area ) != a ) { // check for initial alignment
     
    370370                        //sout | i | area | endl;
    371371                        if ( (size_t)area % a * 2 != 0 || malloc_alignment( area ) != a * 2 ) { // check for initial alignment
    372                                 abort( "cmemalign/realloc with align/free bad alignment %p %jd %jd", area, malloc_alignment( area ), a * 2 );
     372                                abort( "cmemalign/realloc with align/free bad alignment %p %zd %zd", area, malloc_alignment( area ), a * 2 );
    373373                        } // if
    374374                        if ( area[s - 1] != '\0' || area[s - 1] != '\0' ||
Note: See TracChangeset for help on using the changeset viewer.