merge in warren's changes from the old branch OJI_19980430_BRANCH OJI_19980521_TIP_MERGE OJI_19980527_TIP_MERGE OJI_1998_0527_TIP_MERGE
authorjgellman
Tue, 05 May 1998 02:20:21 +0000
branchOJI_19980430_BRANCH
changeset 82 49681c459696fe1167e59058ad10bfab2d57df96
parent 74 7efee0bb07c7394fe7c99d261265299b3055e6c6
push idunknown
push userunknown
push dateunknown
merge in warren's changes from the old branch
pr/include/prmem.h
--- a/pr/include/prmem.h
+++ b/pr/include/prmem.h
@@ -116,17 +116,17 @@ PR_EXTERN(void) PR_Free(void *ptr);
 ** FUNCTION:	PR_DELETE()
 ** DESCRIPTION:
 **   PR_DELETE() unallocates an object previosly allocated via PR_NEW()
 **   or PR_NEWZAP() to the heap.
 ** INPUTS:	pointer to previously allocated object
 ** OUTPUTS:	the referenced object is returned to the heap
 ** RETURN:	void
 ***********************************************************************/
-#define PR_DELETE(_ptr) { PR_Free(_ptr); (_ptr) = NULL; }
+#define PR_DELETE(_ptr) { PR_Free((void*)_ptr); (_ptr) = NULL; }
 
 /***********************************************************************
 ** FUNCTION:	PR_FREEIF()
 ** DESCRIPTION:
 **   PR_FREEIF() conditionally unallocates an object previously allocated
 **   vial PR_NEW() or PR_NEWZAP(). If the pointer to the object is
 **   equal to zero (0), the object is not released.
 ** INPUTS:	pointer to previously allocated object