aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/ir.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-23 15:12:19 +0900
committerOphestra <cat@gensokyo.uk>2026-02-23 15:12:19 +0900
commit485db515f7772178637cd630ca3ac2facd8e7f38 (patch)
treed422d069cb70a9d6c8ec6a61eab7889ca31b211c /internal/pkg/ir.go
parentec7ee0789eae28486a020e7b449992510a52d51f (diff)
internal/pkg/ir: raise string limit to 16 MiB
A string holds "current" hakurei source code. For now the compressed tarball is 4.9 MiB long. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/ir.go')
-rw-r--r--internal/pkg/ir.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkg/ir.go b/internal/pkg/ir.go
index 73315a85..21ba8edc 100644
--- a/internal/pkg/ir.go
+++ b/internal/pkg/ir.go
@@ -150,7 +150,7 @@ func (i *IContext) WriteUint32(v uint32) {
}
// irMaxStringLength is the maximum acceptable wire size of [IRKindString].
-const irMaxStringLength = 1 << 20
+const irMaxStringLength = 1 << 24
// IRStringError is a string value too big to encode in IR.
type IRStringError string