From 8479f9f7d3fac833da9357b87a53bfedbc2df055 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 14 Jun 2011 21:23:43 +0000 Subject: Fix to the file lib code to cast opaque values to ints in a more cross-platform manor. --- src/functionwrite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/functionwrite.cpp') diff --git a/src/functionwrite.cpp b/src/functionwrite.cpp index 7abb661..14a396a 100644 --- a/src/functionwrite.cpp +++ b/src/functionwrite.cpp @@ -26,7 +26,7 @@ Variable FunctionWrite::call( Variable &input, VarList lParams ) "write takes one parameter, the string to write." ); } - FileMgr::getInstance().get( (int)input.getOpaque() ).write( + FileMgr::getInstance().get( (ptrdiff_t)input.getOpaque() ).write( lParams.first().toString() ); return Variable(); -- cgit v1.2.3