[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] passing a large unsigned-int to a foreign-lambda?
From: |
Graham Fawcett |
Subject: |
[Chicken-users] passing a large unsigned-int to a foreign-lambda? |
Date: |
Mon, 19 Jun 2006 13:29:42 -0400 |
Hi folks, I have a foreign-lambda like this:
(define foo (foreign-lambda* int ((unsigned-int32 flags)) ...)
Since it's a uint32, one possible value for "flags" is 2^31. But I
cannot call the procedure with this value.
(foo (arithmetic-shift 1 31))
returns an error because the argument is not a fixnum. If I try (fxshl
1 31) instead, I get a value of 0, presumably because I'm on a 32-bit
build, which isn't right either.
Any suggestions on how to get around this?
Thanks,
Graham
- [Chicken-users] passing a large unsigned-int to a foreign-lambda?,
Graham Fawcett <=