unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* unsigned-int
@ 2017-06-22  9:42 Catonano
  2017-06-22  9:56 ` unsigned-int Catonano
  2017-06-22 16:20 ` unsigned-int Mark H Weaver
  0 siblings, 2 replies; 11+ messages in thread
From: Catonano @ 2017-06-22  9:42 UTC (permalink / raw)
  To: guile-user

I can't extract correct values from unsigned-int's

I can extract correct values from int, unsigned-short

but NOT form an unsigned-int

In that case the number that comes out is plainly wrong

This is how I extract a number from an int (and it works)

(bytevector-uint-ref (pointer->bytevector
          outcome-ptr (sizeof int)) 0
          (endianness big) 1) )

This is an unsigned-short (and it works)

(bytevector-uint-ref (pointer->bytevector
                   columns-ptr (sizeof unsigned-short)) 0
                   (endianness big) 1)

This is an unsigned-int and it DOESN'T work

(bytevector-uint-ref (pointer->bytevector
                    rows-ptr (sizeof unsigned-int)) 0
                   (endianness big) 1)

Thanks in advance


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-06-24  9:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-22  9:42 unsigned-int Catonano
2017-06-22  9:56 ` unsigned-int Catonano
2017-06-22 16:20 ` unsigned-int Mark H Weaver
2017-06-22 19:13   ` unsigned-int Catonano
2017-06-22 19:33     ` unsigned-int Catonano
2017-06-22 19:55       ` unsigned-int Catonano
2017-06-22 20:01         ` unsigned-int Catonano
2017-06-22 20:53           ` unsigned-int Catonano
2017-06-23 12:37       ` unsigned-int Mark H Weaver
2017-06-23 12:16     ` unsigned-int Mark H Weaver
2017-06-24  9:17       ` unsigned-int Catonano

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).