harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r377450 - /incubator/harmony/enhanced/jchevm/libjc/stack.c
Date Mon, 13 Feb 2006 18:30:36 GMT
Author: archie
Date: Mon Feb 13 10:30:36 2006
New Revision: 377450

URL: http://svn.apache.org/viewcvs?rev=377450&view=rev
Log:
Fix compiler warning when assertions are enbled.

Modified:
    incubator/harmony/enhanced/jchevm/libjc/stack.c

Modified: incubator/harmony/enhanced/jchevm/libjc/stack.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/jchevm/libjc/stack.c?rev=377450&r1=377449&r2=377450&view=diff
==============================================================================
--- incubator/harmony/enhanced/jchevm/libjc/stack.c (original)
+++ incubator/harmony/enhanced/jchevm/libjc/stack.c Mon Feb 13 10:30:36 2006
@@ -45,12 +45,12 @@
 #ifndef NDEBUG
     {
     	_jc_word diff;
-	const void *sp;
-	const void *here;
+	const char *sp;
+	const char *here;
 
 	/* Sanity check the _jc_jmpbuf_sp() function */
 	sp = _jc_jmpbuf_sp(cstack->regs);
-	here = &sp;
+	here = (char *)&sp;
 	diff = (sp > here) ? sp - here : here - sp;
 	_JC_ASSERT(diff < 0x100);
 



Mime
View raw message