Author: mturk
Date: Sat Apr 25 14:36:56 2009
New Revision: 768537

URL: http://svn.apache.org/viewvc?rev=768537&view=rev
Log:
Fix cast warnings

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c?rev=768537&r1=768536&r2=768537&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c Sat Apr 25 
14:36:56 2009
@@ -205,7 +205,7 @@
                             noff = 
repb->MountPointReparseBuffer.SubstituteNameOffset;
                         }
                         else
-                        rv = (*_E)->NewString(_E, (const jchar *)wb, nlen);
+                        rv = (*_E)->NewString(_E, (const jchar *)wb, 
(jsize)nlen);
                     break;
                     case IO_REPARSE_TAG_SYMLINK:
                         pb   = (char 
*)repb->SymbolicLinkReparseBuffer.PathBuffer;
@@ -213,7 +213,7 @@
                         noff = repb->SymbolicLinkReparseBuffer.PrintNameOffset;
                         wb   = (wchar_t *)(pb + noff);
                         if (!ACR_StrMatchW(wb, L"\\\\.\\PIPE\\*", NULL, 1)) {
-                            rv = (*_E)->NewString(_E, (const jchar *)wb, nlen);
+                            rv = (*_E)->NewString(_E, (const jchar *)wb, 
(jsize)nlen);
                         }
                         else {
                             nlen = 
repb->SymbolicLinkReparseBuffer.SubstituteNameLength / sizeof(WCHAR);
@@ -228,7 +228,7 @@
                                     wb   += 2;
                                 }
                             }
-                            rv = (*_E)->NewString(_E, (const jchar *)wb, nlen);
+                            rv = (*_E)->NewString(_E, (const jchar *)wb, 
(jsize)nlen);
                         }
                     break;
                     default:


Reply via email to