mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject incubator-mynewt-core git commit: Fix error in le64toh
Date Thu, 07 Apr 2016 07:11:43 GMT
Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop fbc310f6e -> 1b91ac5e5


Fix error in le64toh


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/1b91ac5e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/1b91ac5e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/1b91ac5e

Branch: refs/heads/develop
Commit: 1b91ac5e5d97717d9c3c68dfbe0127043d253394
Parents: fbc310f
Author: William San Filippo <wills@runtime.io>
Authored: Thu Apr 7 00:11:21 2016 -0700
Committer: William San Filippo <wills@runtime.io>
Committed: Thu Apr 7 00:11:21 2016 -0700

----------------------------------------------------------------------
 net/nimble/src/util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1b91ac5e/net/nimble/src/util.c
----------------------------------------------------------------------
diff --git a/net/nimble/src/util.c b/net/nimble/src/util.c
index 8d105d4..c6f2a43 100644
--- a/net/nimble/src/util.c
+++ b/net/nimble/src/util.c
@@ -6,7 +6,7 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *  http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing,
@@ -99,7 +99,7 @@ le64toh(void *buf)
     x |= (uint64_t)u8ptr[4] << 32;
     x |= (uint64_t)u8ptr[5] << 40;
     x |= (uint64_t)u8ptr[6] << 48;
-    x |= (uint64_t)u8ptr[7] << 54;
+    x |= (uint64_t)u8ptr[7] << 56;
 
     return x;
 }


Mime
View raw message