From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: uniform vector byte signed or unsigned Date: Sat, 24 Jul 2004 11:28:23 +0100 Organization: Neil Jerram Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <410239C7.8080701@ossau.uklinux.net> References: <87zn5qiaj7.fsf@zip.com.au> Reply-To: neil@ossau.uklinux.net NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090664989 22071 80.91.224.253 (24 Jul 2004 10:29:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Jul 2004 10:29:49 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jul 24 12:29:37 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BoJmb-0003E2-00 for ; Sat, 24 Jul 2004 12:29:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BoJpX-0008Pg-0f for guile-devel@m.gmane.org; Sat, 24 Jul 2004 06:32:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BoJpQ-0008Oe-PU for guile-devel@gnu.org; Sat, 24 Jul 2004 06:32:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BoJpO-0008NQ-D2 for guile-devel@gnu.org; Sat, 24 Jul 2004 06:32:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BoJpO-0008NN-8U for guile-devel@gnu.org; Sat, 24 Jul 2004 06:32:30 -0400 Original-Received: from [80.84.72.32] (helo=mail2.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BoJlt-0003IT-6A for guile-devel@gnu.org; Sat, 24 Jul 2004 06:28:53 -0400 Original-Received: from laruns.ossau.uklinux.net (unknown [213.78.81.208]) by mail2.uklinux.net (Postfix) with ESMTP id E55DE409FBC; Sat, 24 Jul 2004 10:28:50 +0000 (UTC) Original-Received: from ossau.uklinux.net (localhost [127.0.0.1]) by laruns.ossau.uklinux.net (Postfix on SuSE Linux 7.2 (i386)) with ESMTP id 38821DC4D4; Sat, 24 Jul 2004 11:28:28 +0100 (BST) User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.4-4GB i686; en-US; 0.8.1) Gecko/20010515 X-Accept-Language: en Original-To: Kevin Ryde X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3883 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3883 Kevin Ryde wrote: > In scm_cvref it looks like a byvect byte is fetched as a "char", which > is of course normally signed, but on some systems can be unsigned. > > Is a byte meant to be treated as signed? It's probably worth making > that explicit so scheme level stuff doesn't depend on the vagaries of > C type conventions. Good spot. I've hit this on Windows, where it comes out as signed, and so I have to do a trivial conversion to an unsigned value. My preference would be for the value to be unsigned in the first place, though. Regards, Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel