X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=examples%2Fstrtol.cl;h=8beeddf4c67819308787d9fcd329fe64621a5469;hb=11f2368e2aa756f12f698ce3f2d5182d2299dafc;hp=63aea44fb8546fa1a627f193fb44f78e62c78f37;hpb=fc85b603152cea9b5fff03fa7085cce3536b17f7;p=uffi.git diff --git a/examples/strtol.cl b/examples/strtol.cl index 63aea44..8beeddf 100644 --- a/examples/strtol.cl +++ b/examples/strtol.cl @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: strtol.cl,v 1.9 2002/03/17 17:33:30 kevin Exp $ +;;;; $Id: strtol.cl,v 1.10 2002/03/18 22:47:57 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -38,8 +38,7 @@ of first non-valid character" (let* ((str-native (uffi:convert-to-foreign-string str)) (endptr (uffi:allocate-foreign-object char-ptr)) (value (c-strtol str-native endptr base)) - (endptr-value (uffi:deref-pointer endptr 'char-ptr)) - next-char-value chars-parsed) + (endptr-value (uffi:deref-pointer endptr 'char-ptr))) (unwind-protect (if (uffi:null-pointer-p endptr-value)