diff options
| author | gingerBill <bill@gingerbill.org> | 2020-03-05 20:34:30 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-03-05 20:34:30 +0000 |
| commit | e92fdb4a99bf9d27009dd35fdd074ff14facfc03 (patch) | |
| tree | e74c13d12da216f2548db0a8359e491263dc6acd /core/reflect | |
| parent | 2fe0eaf2adf952867d4ce4fba53b4b3ac75e1ba5 (diff) | |
`x if cond else y` and `x when cond else y` expressions
Diffstat (limited to 'core/reflect')
| -rw-r--r-- | core/reflect/types.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/reflect/types.odin b/core/reflect/types.odin index 42ab9828a..3ea121bc3 100644 --- a/core/reflect/types.odin +++ b/core/reflect/types.odin @@ -321,7 +321,7 @@ write_type :: proc(buf: ^strings.Builder, ti: ^rt.Type_Info) { case uint: write_string(buf, "uint"); case uintptr: write_string(buf, "uintptr"); case: - write_byte(buf, info.signed ? 'i' : 'u'); + write_byte(buf, 'i' if info.signed else 'u'); write_i64(buf, i64(8*ti.size), 10); switch info.endianness { case .Platform: // Okay |