ref: a989b81e990d3d1fe661a4d78b0f0fccd837584c
parent: 689e27769611b300c2aea9573b1d88d7d4e0bc13
author: rxi <[email protected]>
date: Sat Oct 20 13:18:02 EDT 2018
Renamed internal MU_HASH_SEED -> HASH_INITIAL
--- a/src/microui.c
+++ b/src/microui.c
@@ -235,7 +235,7 @@
/* 32bit fnv-1a hash */
-#define MU_HASH_SEED 2166136261
+#define HASH_INITIAL 2166136261
static void hash(mu_Id *hash, const void *data, int size) {
const unsigned char *p = data;
@@ -247,7 +247,7 @@
mu_Id mu_get_id(mu_Context *ctx, const void *data, int size) {
int idx = ctx->id_stack.idx;
- mu_Id res = (idx > 0) ? ctx->id_stack.items[idx - 1] : MU_HASH_SEED;
+ mu_Id res = (idx > 0) ? ctx->id_stack.items[idx - 1] : HASH_INITIAL;
hash(&res, data, size);
ctx->last_id = res;
return res;