bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #38081] Integer truncation


From: Helmut Eller
Subject: [Bug-kawa] [bug #38081] Integer truncation
Date: Mon, 14 Jan 2013 11:33:28 +0000
User-agent: Opera/9.80 (X11; Linux i686) Presto/2.12.388 Version/12.10

URL:
  <http://savannah.gnu.org/bugs/?38081>

                 Summary: Integer truncation
                 Project: Kawa
            Submitted by: ellerh
            Submitted on: Mon 14 Jan 2013 11:33:27 AM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Kawa truncates integers when storing into byte arrays:

(scheme-implementation-version) => "1.13.1 (revision 7422)"
(define v (byte[] length: 1))
(set! (v 0) 128)
(v 0) => -128


The same happens for s8vectors.
It would be nice if the value would be checked and signal an error
if it is not in the [-128, 127] range.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38081>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]