]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
VG_(malloc_aligned): accept req_alignB == 4.
authorJulian Seward <jseward@acm.org>
Wed, 24 Apr 2002 20:32:50 +0000 (20:32 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 24 Apr 2002 20:32:50 +0000 (20:32 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@138

coregrind/vg_malloc2.c
vg_malloc2.c

index 718ed3a8388e06f3ca33e46fd68ec977b31d9c60..8b6c6213b7245faa68f4819de066fc9e057b62bd 100644 (file)
@@ -1081,6 +1081,7 @@ void* VG_(malloc_aligned) ( ArenaId aid, Int req_alignB, Int req_pszB )
       a power of 2.  There must be a better way to do this.  What is
       it? */
    switch (req_alignB) {
+      case 4:
       case 8: case 16: case 32: case 64: case 128: case 256: 
       case 512: case 1024: case 2048: case 4096: case 8192: 
       case 16384: case 32768: case 65536: case 131072: 
index 718ed3a8388e06f3ca33e46fd68ec977b31d9c60..8b6c6213b7245faa68f4819de066fc9e057b62bd 100644 (file)
@@ -1081,6 +1081,7 @@ void* VG_(malloc_aligned) ( ArenaId aid, Int req_alignB, Int req_pszB )
       a power of 2.  There must be a better way to do this.  What is
       it? */
    switch (req_alignB) {
+      case 4:
       case 8: case 16: case 32: case 64: case 128: case 256: 
       case 512: case 1024: case 2048: case 4096: case 8192: 
       case 16384: case 32768: case 65536: case 131072: