mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Fixed warning.
This commit is contained in:
@@ -1176,7 +1176,7 @@ static inline bool decl_poison(Decl *decl) { decl->decl_kind = DECL_POISONED; de
|
||||
static inline bool decl_is_struct_type(Decl *decl)
|
||||
{
|
||||
DeclKind kind = decl->decl_kind;
|
||||
return kind == DECL_UNION | kind == DECL_STRUCT | kind == DECL_ERR;
|
||||
return (kind == DECL_UNION) | (kind == DECL_STRUCT) | (kind == DECL_ERR);
|
||||
}
|
||||
static inline DeclKind decl_from_token(TokenType type)
|
||||
{
|
||||
|
||||
@@ -5,11 +5,15 @@
|
||||
#include "compiler_tests/tests.h"
|
||||
#include "utils/lib.h"
|
||||
|
||||
static int version = 100;
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
// First setup memory
|
||||
memory_init();
|
||||
|
||||
DEBUG_LOG("Version: %d", version);
|
||||
|
||||
// Init the compiler
|
||||
compiler_init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user