From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <5859c57f4e27661221048bebc7aef95c@quanstro.net> References: <138575260903310912n36d99830wea918bcf59bc098d@mail.gmail.com> <5859c57f4e27661221048bebc7aef95c@quanstro.net> Date: Wed, 1 Apr 2009 11:02:50 +0200 Message-ID: <138575260904010202u653c289ctcc2c6b3149b3467f@mail.gmail.com> From: hugo rivera To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] drawterm crash Topicbox-Message-UUID: cf43e0f2-ead4-11e9-9d60-3106f5b1d025 yes, I am on suse 10.0 x86_64. When I compile I get two warnings related to longs and ints: devtls.c:521: warning: comparison is always true due to limited range of data type sysproc.c:14: warning: cast to pointer from integer of different size the first one points to if(d->mode != ~0UL) which I have no idea why is causing a warning, since mode is also a ulong. And the second one is from a cast status = (char*)arg[0]; but I am not really sure how to fix this correctly. I just did something like char c; c = arg[0] & 0xFF; status = &c; this eliminates the warning and drawterm doesn't crash any more. But the problem is that I cannot paste anything that comes from X to drawterm, should I be able to? Saludos 2009/3/31, erik quanstrom : > On Tue Mar 31 12:14:49 EDT 2009, uair00@gmail.com wrote: > > Hi, > > Just try to paste anything coming from X. (e.g. paint some text from > > an xterm, then try to paste it on some terminal on drawterm, using the > > menu or the 1-3 mouse chord, both crash anyway) > > > you're using a 64-bit os, aren't you? if that's the case, i fixed this a week > or so ago and pushed the patch to russ. i think he's got the fix. if not, > just fix the compile warning and you'll be good-to-go. it's an int vs. long > issue. unfortunately, i don't have yesterday for linux and don't remember > what i fixed. > > > - erik > > -- Hugo