Skip to content

Conversation

@prusnak
Copy link
Contributor

@prusnak prusnak commented Apr 14, 2023

Avoid duplication of type names in utils

Extracted from PR #953 by @unbounded

Avoid duplication of type names in utils
#include <unordered_map>
#include <vector>

static const char * type_strs[] = { "q4_0", "q4_1", "i8", "i16", "i32", "f16", "f32" };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just in case anyone wonders, this ordering was a bug I introduced in #709. Thanks to designated initalizers being allowed in C11, this should not happen in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants