Skip to content

Commit 91aa4f3

Browse files
committed
Cleanup
1 parent 5971603 commit 91aa4f3

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

include/zest/string/murmur_hash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ constexpr uint64_t murmur_hash_64(const void * key, uint32_t len, uint64_t seed)
129129
h *= m;
130130
}
131131

132-
const unsigned char * data2 = (const unsigned char*)data;
132+
const unsigned char * data2 = *(const unsigned char**)(&data);
133133

134134
switch (len & 7)
135135
{

include/zest/time/pico_profiler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PicoMutex {
1313
public:
1414
PicoMutex()
1515
{
16-
lock = mutex_init(&_myMutex);
16+
mutex_init(&_myMutex);
1717
}
1818

1919
void lock()
@@ -43,7 +43,7 @@ class PicoLockGuard {
4343
PicoLockGuard& operator=(const PicoLockGuard&) = delete;
4444

4545
PicoMutex& myMutex;
46-
}
46+
};
4747

4848
namespace Profiler
4949
{

src/time/timer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include <sstream>
33
#include <string>
44

5-
#include "zest/logger/logger.h"
65
#include "zest/time/timer.h"
76
#include <zest/time/profiler.h>
87

0 commit comments

Comments
 (0)