Merge pull request #591 from mgerhardy/issue584
Fixed parts of issue #584
This commit is contained in:
commit
5b9d6a9e6f
|
@ -891,7 +891,6 @@ overview(struct nk_context *ctx)
|
|||
if (nk_tree_push(ctx, NK_TREE_NODE, "Notebook", NK_MINIMIZED))
|
||||
{
|
||||
static int current_tab = 0;
|
||||
struct nk_vec2 item_padding;
|
||||
struct nk_rect bounds;
|
||||
float step = (2*3.141592654f) / 32;
|
||||
enum chart_type {CHART_LINE, CHART_HISTO, CHART_MIXED};
|
||||
|
|
|
@ -5693,13 +5693,14 @@ nk_murmur_hash(const void * key, int len, nk_hash seed)
|
|||
tail = (const nk_byte*)(data + nblocks*4);
|
||||
k1 = 0;
|
||||
switch (len & 3) {
|
||||
case 3: k1 ^= (nk_uint)(tail[2] << 16);
|
||||
case 2: k1 ^= (nk_uint)(tail[1] << 8u);
|
||||
case 3: k1 ^= (nk_uint)(tail[2] << 16); /* fallthrough */
|
||||
case 2: k1 ^= (nk_uint)(tail[1] << 8u); /* fallthrough */
|
||||
case 1: k1 ^= tail[0];
|
||||
k1 *= c1;
|
||||
k1 = NK_ROTL(k1,15);
|
||||
k1 *= c2;
|
||||
h1 ^= k1;
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue