diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-07-11 17:09:04 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-12 08:22:44 +0200 |
| commit | c1147c8df73eb61bc9d66e6628e0369e21f28670 (patch) | |
| tree | 1f5f75bf13a32941025c134fdd236fb137cf3181 /pkg/compiler | |
| parent | 0faffd0438df859fb66236085ac3992735900d26 (diff) | |
all: fix comments format
Fix capitalization, dots at the end
and two spaces after a period.
Update #1876
Diffstat (limited to 'pkg/compiler')
| -rw-r--r-- | pkg/compiler/types.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/compiler/types.go b/pkg/compiler/types.go index fd021cefc..6cf32e39f 100644 --- a/pkg/compiler/types.go +++ b/pkg/compiler/types.go @@ -107,9 +107,9 @@ var typeInt = &typeDesc{ comp.error(args[0].Pos, "bad int range [%v:%v]", begin, end) return } - // range is in [0:MAX_UINT] + // The range fits into the size if treated as unsigned [0:MAX_UINT]. inUnsignedBase := begin <= maxUInt && end <= maxUInt - // range is in [-MIN_SINT:MAX_SINT] + // The range fits into the size if treated as signed [-MIN_SINT:MAX_SINT]. inSignedBase := begin+maxSInt <= maxUInt && end+maxSInt <= maxUInt if size < 64 && !inUnsignedBase && !inSignedBase { comp.error(args[0].Colon[0].Pos, "int range [%v:%v] is too large for base type of size %v", |
