unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
Cc: guile-devel@gnu.org
Subject: Re: uniform vector byte signed or unsigned
Date: Sat, 24 Jul 2004 11:28:23 +0100	[thread overview]
Message-ID: <410239C7.8080701@ossau.uklinux.net> (raw)
In-Reply-To: 87zn5qiaj7.fsf@zip.com.au

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


  reply	other threads:[~2004-07-24 10:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23 23:11 uniform vector byte signed or unsigned Kevin Ryde
2004-07-24 10:28 ` Neil Jerram [this message]
2004-07-27 22:42   ` Kevin Ryde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=410239C7.8080701@ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).