Date: 02/28/99
- Next message: rasmus: "[PHP-DEV] CVS update: php3"
- Previous message: sas <email protected>: "Re: [PHP-DEV] CVS update: php3"
- Next in thread: rasmus: "[PHP-DEV] CVS update: php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sunday February 28, 1999 @ 12:23
Author: rasmus
Update of /repository/php3
In directory asf:/u/temp/cvs-serv29092
Modified Files:
alloc.c
Log Message:
This should be portable now and avoid compiler warnings on all platforms
Index: php3/alloc.c
diff -c php3/alloc.c:1.81 php3/alloc.c:1.82
*** php3/alloc.c:1.81 Sun Feb 28 11:53:06 1999
--- php3/alloc.c Sun Feb 28 12:23:49 1999
***************
*** 463,469 ****
*((long *)(((char *) p) + sizeof(mem_header)+p->size+PLATFORM_PADDING+END_ALIGNMENT(p->size))), MEM_BLOCK_END_MAGIC);
fprintf(stderr,"%10s\t","");
if (overflows>=sizeof(long)) {
! fprintf(stderr, "At least %d bytes overflown\n", sizeof(long));
} else {
fprintf(stderr, "%d byte(s) overflown\n", overflows);
}
--- 463,470 ----
*((long *)(((char *) p) + sizeof(mem_header)+p->size+PLATFORM_PADDING+END_ALIGNMENT(p->size))), MEM_BLOCK_END_MAGIC);
fprintf(stderr,"%10s\t","");
if (overflows>=sizeof(long)) {
! unsigned long format_hack = (unsigned long)sizeof(long);
! fprintf(stderr, "At least %lu bytes overflown\n", format_hack);
} else {
fprintf(stderr, "%d byte(s) overflown\n", overflows);
}
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: rasmus: "[PHP-DEV] CVS update: php3"
- Previous message: sas <email protected>: "Re: [PHP-DEV] CVS update: php3"
- Next in thread: rasmus: "[PHP-DEV] CVS update: php3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

