From eb313ebb5bfbeb139b32ff978f8a2b83973782f6 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 1 Aug 2019 01:19:45 +0200 Subject: [PATCH] option: increase the temporary limit --- vlib/builtin/option.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/builtin/option.v b/vlib/builtin/option.v index bb60a32e73..a1db5124c7 100644 --- a/vlib/builtin/option.v +++ b/vlib/builtin/option.v @@ -5,15 +5,15 @@ module builtin struct Option { - data [255] byte + data [500]byte error string ok bool } // `fn foo() ?Foo { return foo }` => `fn foo() ?Foo { return opt_ok(foo); }` fn opt_ok(data voidptr, size int) Option { - if size > 255 { - panic('option size too big: $size (max is 255), this is a temporary limit') + if size >= 500 { + panic('option size too big: $size (max is 500), this is a temporary limit') } res := Option { ok: true