aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-30 20:38:46 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-30 20:38:46 +0100
commitc6aac264fa8001ff5e55e5ac6f56289ff0a755ee (patch)
tree4ff0521b330e5a2b0183d3bab2f762a669b5efa5 /src/common.cpp
parent04b5d8c132e8aabb3bb5dff31683cb45d4dff9c0 (diff)
Begin work on const llvm aggregate literals
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common.cpp b/src/common.cpp
index 9b38d4859..f5fe5b50c 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -26,6 +26,7 @@ String get_module_dir(gbAllocator a) {
path.len--;
}
+
return path;
}
@@ -211,7 +212,7 @@ gb_inline void map_destroy(Map<T> *h) {
template <typename T>
gb_internal isize map__add_entry(Map<T> *h, HashKey key) {
- MapEntry<T> e = {0};
+ MapEntry<T> e = {};
e.key = key;
e.next = -1;
gb_array_append(h->entries, e);
@@ -267,7 +268,7 @@ gb_inline void map_grow(Map<T> *h) {
template <typename T>
void map_rehash(Map<T> *h, isize new_count) {
isize i, j;
- Map<T> nh = {0};
+ Map<T> nh = {};
map_init(&nh, gb_array_allocator(h->hashes));
gb_array_resize(nh.hashes, new_count);
gb_array_reserve(nh.entries, gb_array_count(h->entries));