r10584: * tests/objects.lisp: Rename from pointers.lisp.
[uffi.git] / src / objects.lisp
index 7648e93039cb8d4a71554921c455bb42528daf05..e9a2024112ec409b26c136a3deda65020ba8ca16 100644 (file)
@@ -137,8 +137,7 @@ an array of TYPE with size SIZE. The TYPE parameter is evaluated."
   
 (defmacro ensure-char-integer (obj)
   #+(or (and mcl (not openmcl))) `(char-code ,obj)
-  #+(or allegro cmu sbcl scl openmcl) obj
-  `(if (characterp ,obj) (char-code ,obj) ,obj))
+  #+(or allegro cmu sbcl scl openmcl) obj)
 
 (defmacro ensure-char-storable (obj)
   #+(or lispworks (and mcl (not openmcl))) obj