From: Michael Jerris Date: Wed, 31 Jan 2007 07:55:18 +0000 (+0000) Subject: pointer truncation fix. X-Git-Tag: v1.0-beta1~1257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55cdd067c010170a1842eab71ca098409f132567;p=thirdparty%2Ffreeswitch.git pointer truncation fix. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4097 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/libsndfile/src/file_io.c b/libs/libsndfile/src/file_io.c index af5ccd6fcb..c7ae2d519e 100644 --- a/libs/libsndfile/src/file_io.c +++ b/libs/libsndfile/src/file_io.c @@ -858,10 +858,8 @@ psf_set_stdio (SF_PRIVATE *psf, int mode) /* USE_WINDOWS_API */ void psf_set_file (SF_PRIVATE *psf, int fd) { HANDLE handle ; - long osfhandle ; - osfhandle = _get_osfhandle (fd) ; - handle = (HANDLE) osfhandle ; + handle = (HANDLE) _get_osfhandle (fd) ; psf->hfile = handle ; } /* psf_set_file */