projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r3759: fix type
[uffi.git]
/
tests
/
union.lisp
diff --git
a/tests/union.lisp
b/tests/union.lisp
index 5b22be2cdfa0e03615363c26327ab69bd874f5a6..2e186d84e8f0119050b74ca9ed75157981921b2b 100644
(file)
--- a/
tests/union.lisp
+++ b/
tests/union.lisp
@@
-7,7
+7,7
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
-;;;; $Id: union.lisp,v 1.
2 2002/12/03 06:58:39
kevin Exp $
+;;;; $Id: union.lisp,v 1.
3 2002/12/09 16:30:20
kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
@@
-29,7
+29,7
@@
(let ((u (uffi:allocate-foreign-object 'tunion1)))
(setf (uffi:get-slot-value u 'tunion1 'uint)
;; little endian
(let ((u (uffi:allocate-foreign-object 'tunion1)))
(setf (uffi:get-slot-value u 'tunion1 'uint)
;; little endian
- #-(or sparc sparc-v9 powerpc ppc
little
-endian)
+ #-(or sparc sparc-v9 powerpc ppc
big
-endian)
(+ (* 1 (char-code #\A))
(* 256 (char-code #\B))
(* 65536 (char-code #\C))
(+ (* 1 (char-code #\A))
(* 256 (char-code #\B))
(* 65536 (char-code #\C))