diff --git a/Doc/Manual/Java.html b/Doc/Manual/Java.html index 1676046f7..e446de389 100644 --- a/Doc/Manual/Java.html +++ b/Doc/Manual/Java.html @@ -5682,7 +5682,7 @@ allow the calling function to read the double * value after returning from the f jfieldID fid = jenv->GetFieldID(clazz, "swigCPtr", "J"); jlong cPtr = jenv->GetLongField($input, fid); MyDouble *pMyDouble = NULL; - *(MyDouble **)&pMyDouble = *(MyDouble **)&cPtr; + *(MyDouble **)(void *)&pMyDouble = *(MyDouble **)(void *)&cPtr; $1 = &pMyDouble->value; } @@ -5847,7 +5847,7 @@ Add the following before the definition of vehicle_factory:
%typemap(out) Vehicle * {
Ambulance *downcast = dynamic_cast<Ambulance *>($1);
- *(Ambulance **)&$result = downcast;
+ *(Ambulance **)(void *)&$result = downcast;
}
%typemap(javaout) Vehicle * {
@@ -5915,7 +5915,7 @@ Note that in this case, the Java class is constructed using JNI code rather than
jmethodID mid = jenv->GetMethodID(clazz, "<init>", "(JZ)V");
if (mid) {
jlong cptr = 0;
- *(Ambulance **)&cptr = ambulance;
+ *(Ambulance **)(void *)&cptr = ambulance;
$result = jenv->NewObject(clazz, mid, cptr, false);
}
}
@@ -5926,7 +5926,7 @@ Note that in this case, the Java class is constructed using JNI code rather than
jmethodID mid = jenv->GetMethodID(clazz, "<init>", "(JZ)V");
if (mid) {
jlong cptr = 0;
- *(FireEngine **)&cptr = fireengine;
+ *(FireEngine **)(void *)&cptr = fireengine;
$result = jenv->NewObject(clazz, mid, cptr, false);
}
}