You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2012/06/18 13:06:19 UTC

svn commit: r1351294 - /subversion/trunk/subversion/libsvn_subr/io.c

Author: philip
Date: Mon Jun 18 11:06:19 2012
New Revision: 1351294

URL: http://svn.apache.org/viewvc?rev=1351294&view=rev
Log:
* subversion/libsvn_subr/io.c
  (get_default_file_perms): The lower 32-bits are good enough here, avoid
   warnings on 32-bit platforms.

Modified:
    subversion/trunk/subversion/libsvn_subr/io.c

Modified: subversion/trunk/subversion/libsvn_subr/io.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/io.c?rev=1351294&r1=1351293&r2=1351294&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/io.c (original)
+++ subversion/trunk/subversion/libsvn_subr/io.c Mon Jun 18 11:06:19 2012
@@ -1405,8 +1405,7 @@ get_default_file_perms(apr_fileperms_t *
         Using svn_io_open_uniquely_named() here because other tempfile
         creation functions tweak the permission bits of files they create.
       */
-      randomish = ((apr_uint32_t)(apr_uint64_t)scratch_pool
-                   + (apr_uint32_t)((apr_uint64_t)scratch_pool >> 32)
+      randomish = ((apr_uint32_t)(apr_uintptr_t)scratch_pool
                    + (apr_uint32_t)apr_time_now());
       fname_base = apr_psprintf(scratch_pool, "svn-%08x", randomish);