diff options
| author | gingerBill <bill@gingerbill.org> | 2018-10-31 10:04:30 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-10-31 10:04:30 +0000 |
| commit | 6659ceb551c3d1959ab8b8aa3301f66973cf1aa6 (patch) | |
| tree | b40b3a2bac333840bb0e8420d2604aa4ee30cb9b /src/types.cpp | |
| parent | 5aa591d8845d8803d9a59502e99bc666bead9a3f (diff) | |
Allow comparisons of `cstring`; Add `resize`
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp index beb94caac..f5d1bb4a9 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -1238,8 +1238,10 @@ bool is_type_comparable(Type *t) { return false; case Basic_rune: return true; + case Basic_string: + return true; case Basic_cstring: - return false; + return true; case Basic_typeid: return true; } |