diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-21 23:26:31 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-21 23:26:31 +0100 |
| commit | 664c2cd7a587feb18f02378506bdade2503343d3 (patch) | |
| tree | 2c0b5e972eaa2cc74ec67c377a9bd8f6e284b24e /src/checker/type.cpp | |
| parent | 33bd3f635f9d98636ab4631fac9cff4e9d7fdb4d (diff) | |
Fix enum type comparison; Start demo 003 code
Diffstat (limited to 'src/checker/type.cpp')
| -rw-r--r-- | src/checker/type.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp index c8fe672f7..ae415b3d5 100644 --- a/src/checker/type.cpp +++ b/src/checker/type.cpp @@ -599,12 +599,8 @@ b32 are_types_identical(Type *x, Type *y) { break; case TypeRecord_Enum: - if (are_types_identical(x->Record.enum_base, y->Record.enum_base)) { - if (x->Record.field_count == y->Record.field_count) { - return x->Record.fields == y->Record.fields; - } - } - return false; + // NOTE(bill): Each enum is unique + return x == y; } } } |