httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1524321 - /httpd/httpd/trunk/modules/lua/lua_request.c
Date Wed, 18 Sep 2013 07:48:22 GMT
Author: humbedooh
Date: Wed Sep 18 07:48:22 2013
New Revision: 1524321

URL: http://svn.apache.org/r1524321
Log:
mod_lua: ap_ntoh64 endianess test

Modified:
    httpd/httpd/trunk/modules/lua/lua_request.c

Modified: httpd/httpd/trunk/modules/lua/lua_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_request.c?rev=1524321&r1=1524320&r2=1524321&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_request.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_request.c Wed Sep 18 07:48:22 2013
@@ -1933,7 +1933,10 @@ static apr_uint64_t ap_ntoh64(const apr_
 {
     apr_uint64_t rval;
     unsigned char *data = (unsigned char *)&rval;
-
+    if (APR_IS_BIGENDIAN) {
+        return *input;
+    }
+    
     data[0] = *input >> 56;
     data[1] = *input >> 48;
     data[2] = *input >> 40;



Mime
View raw message