Mail Archives: cygwin/2002/11/08/18:58:18
Lapo Luchini wrote:
> Hi all!
> I'd like to use SXP (http://sxp.sourceforge.net/) on a project, but it
> gives a couple of header errors.
> I can solve them myself I bet but, as I'm lazy and I'm in a hurry...
> just a quick message here to ask if someone already did it ^_^
OK.. did it, wasn't dififcult at all, once "mentally erased" the lines
and lines of STL errors...
--- sxp.cpp.orig 2001-12-09 11:24:18.000000000 +0100
+++ sxp.cpp 2002-11-09 00:12:48.000000000 +0100
@@ -88,12 +88,12 @@
}
} else {
if( *p < 0x800 ) {
- ret.append(1, (0xC0 | ((*p) >> 6) ));
- ret.append(1, (0x80 | ((*p) & 0x3F )));
+ ret.append(1, (char)(0xC0 | ((*p) >> 6) ));
+ ret.append(1, (char)(0x80 | ((*p) & 0x3F )));
} else {
- ret.append(1, (0xE0 | ( (*p) >> 12) ));
- ret.append(1, (0x80 | (((*p) >> 6) & 0x3F )));
- ret.append(1, (0x80 | ( (*p) & 0x3F )));
+ ret.append(1, (char)(0xE0 | ( (*p) >> 12) ));
+ ret.append(1, (char)(0x80 | (((*p) >> 6) & 0x3F )));
+ ret.append(1, (char)(0x80 | ( (*p) & 0x3F )));
}
}
}
--
Lapo 'Raist' Luchini
lapo AT lapo DOT it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -