X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fstrtol.cl;h=387d23b26b639b4a8fbf7705d1ecc1a20ccf0b14;hb=e7691ffb0055b6a2c27639838b3b594e808f8973;hp=d813f1333173b416c20f976d76cfce96813caaf6;hpb=baabff1a8dbf4813072d87f6977cd488c376fe56;p=uffi.git diff --git a/tests/strtol.cl b/tests/strtol.cl index d813f13..387d23b 100644 --- a/tests/strtol.cl +++ b/tests/strtol.cl @@ -9,7 +9,7 @@ ;;;; ;;;; Copyright (c) 2002 Kevin M. Rosenberg ;;;; -;;;; $Id: strtol.cl,v 1.3 2002/03/10 04:15:33 kevin Exp $ +;;;; $Id: strtol.cl,v 1.4 2002/03/10 04:36:04 kevin Exp $ ;;;; ;;;; This file is part of UFFI. ;;;; @@ -29,14 +29,14 @@ (in-package :cl-user) -(uffi:def-type char-ptr (* :char)) +(uffi:def-type char-ptr (* :unsigned-char)) ;; This example does not use :c-string to pass the input string since ;; the routine needs to do pointer arithmetic to see how many characters ;; were parsed (uffi:def-function ("strtol" c-strtol) - ((nptr (* :char)) + ((nptr (* :unsigned-char)) (endptr (* char-ptr)) (base :int)) :returning :long)