Some definitions of assert seem to want to coerce the parameter to
'long int'. Here are some fixes to avoid compilation errors.
Tim.
*/
--- vnc-4.0b3-unixsrc/rfb/Region.cxx.compile 2003-08-18 12:25:40.000000000
+0100
+++ vnc-4.0b3-unixsrc/rfb/Region.cxx 2003-08-18 12:26:08.000000000 +0100
@@ -53,18 +53,18 @@
rfb::Region::Region() {
xrgn = XCreateRegion();
- assert(xrgn);
+ assert(xrgn != NULL);
}
rfb::Region::Region(const Rect& r) {
xrgn = XCreateRegion();
- assert(xrgn);
+ assert(xrgn != NULL);
reset(r);
}
rfb::Region::Region(const rfb::Region& r) {
xrgn = XCreateRegion();
- assert(xrgn);
+ assert(xrgn != NULL);
XUnionRegion(xrgn, r.xrgn, xrgn);
}
--- vnc-4.0b3-unixsrc/rfb/SMsgWriter.cxx.compile 2003-08-18 12:26:23.000000000
+0100
+++ vnc-4.0b3-unixsrc/rfb/SMsgWriter.cxx 2003-08-18 12:26:35.000000000 +0100
@@ -127,7 +127,7 @@
{
if (!encoders[encoding]) {
encoders[encoding] = Encoder::createEncoder(encoding, this);
- assert(encoders[encoding]);
+ assert(encoders[encoding] != NULL);
}
encoders[encoding]->writeRect(r,ig);
}
[demime 0.99d.1 removed an attachment of type application/pgp-signature]
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list