Gustavo
Mon, 23 Aug 2010 06:02:47 -0700
Those don't fail, but:
UFFI-TESTS> (let ((native-string "test string"))
(uffi:with-foreign-string (fs native-string)
(ensure-char-character
(deref-pointer fs :char))))
#\t
UFFI-TESTS> (let ((native-string "test string"))
(uffi:with-foreign-string (fs native-string)
(deref-pointer fs :char)))
116
The latter would return #\t in uffi-compat. Em 22 de agosto de 2010 18:25, Luís Oliveira <luis...@gmail.com> escreveu: 2010/8/10 Gustavo <gugamil...@gmail.com>: > > I found one inconsistency in uffi's documentation. Uffi's doc says that > > dereferencing types :char and :unsigned-char return characters where > > actually it returns integers (at least here). > > Does that mean these tests fail for you? > <http://git.b9.com/?p=uffi.git;a=blob;f=tests/objects.lisp> > > -- > Luís Oliveira > http://r42.eu/~luis/ <http://r42.eu/%7Eluis/> >
_______________________________________________ cffi-devel mailing list cffi-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel