Added type cast necessary for compiling as C++ file (at least under VC++).

This commit is contained in:
Karl Waclawek 2004-08-10 18:06:29 +00:00
parent a5af514c3d
commit a14f6a8b2d

View File

@ -11,7 +11,7 @@ static void XMLCALL
startElement(void *userData, const char *name, const char **atts)
{
int i;
int *depthPtr = userData;
int *depthPtr = (int *)userData;
for (i = 0; i < *depthPtr; i++)
putchar('\t');
puts(name);
@ -21,7 +21,7 @@ startElement(void *userData, const char *name, const char **atts)
static void XMLCALL
endElement(void *userData, const char *name)
{
int *depthPtr = userData;
int *depthPtr = (int *)userData;
*depthPtr -= 1;
}