Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3DCC4F8A.2040201@lapo.it> Date: Sat, 09 Nov 2002 00:58:02 +0100 From: Lapo Luchini User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021025 X-Accept-Language: it, en, fr, es MIME-Version: 1.0 To: Mailing List: CygWin Subject: Re: SXP on Cygwin References: <3DCBA591 DOT 5040906 AT lapo DOT it> In-Reply-To: <3DCBA591.5040906@lapo.it> X-Enigmail-Version: 0.70.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/