From 543a2d1e5a0ee96e782fb184ea5b73b9081c0eff Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Wed, 23 Nov 2016 09:46:58 +0000 Subject: Swap b32 to bool, et al. --- src/common.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/common.cpp') diff --git a/src/common.cpp b/src/common.cpp index e07ea362a..7969b5943 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -9,7 +9,7 @@ gbAllocator heap_allocator(void) { #include "array.cpp" gb_global String global_module_path = {}; -gb_global b32 global_module_path_set = false; +gb_global bool global_module_path_set = false; String get_module_dir() { @@ -125,7 +125,7 @@ gb_inline HashKey hash_pointer(void *ptr) { return h; } -b32 hash_key_equal(HashKey a, HashKey b) { +bool hash_key_equal(HashKey a, HashKey b) { if (a.key == b.key) { // NOTE(bill): If two string's hashes collide, compare the strings themselves if (a.kind == HashKey_String) { @@ -351,7 +351,7 @@ gb_internal MapFindResult map__find(Map *h, MapEntry *e) { template -gb_internal b32 map__full(Map *h) { +gb_internal bool map__full(Map *h) { return 0.75f * h->hashes.count <= h->entries.count; } -- cgit v1.2.3