Author: titmuss
Date: Tue May 27 02:54:57 2008
New Revision: 2526

URL: http://svn.slimdevices.com?rev=2526&root=Jive&view=rev
Log:
Bug: N/A
Description:
Compile fix for both gcc and Visual C.


Modified:
    7.2/trunk/squeezeplay/src/Tremor/misc.c

Modified: 7.2/trunk/squeezeplay/src/Tremor/misc.c
URL: 
http://svn.slimdevices.com/7.2/trunk/squeezeplay/src/Tremor/misc.c?rev=2526&root=Jive&r1=2525&r2=2526&view=diff
==============================================================================
--- 7.2/trunk/squeezeplay/src/Tremor/misc.c (original)
+++ 7.2/trunk/squeezeplay/src/Tremor/misc.c Tue May 27 02:54:57 2008
@@ -117,7 +117,7 @@
 
   global_bytes+=(bytes-HEAD_ALIGN);
 
-  return((head *)ptr+HEAD_ALIGN);
+  return((char *)ptr+HEAD_ALIGN);
 }
 
 static void _ripremove(void *ptr){
@@ -190,7 +190,7 @@
 extern void *_VDBG_malloc(void *ptr,long bytes,char *file,long line){
   bytes+=HEAD_ALIGN;
   if(ptr){
-    ((head *)ptr)-=HEAD_ALIGN;
+    ptr = (char *)ptr - HEAD_ALIGN;
     _ripremove(ptr);
     ptr=realloc(ptr,bytes);
   }else{
@@ -202,7 +202,7 @@
 
 extern void _VDBG_free(void *ptr,char *file,long line){
   if(ptr){
-    ((head *)ptr)-=HEAD_ALIGN;
+    ptr = (char *)ptr - HEAD_ALIGN;
     _ripremove(ptr);
     free(ptr);
   }

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to