From 8ef00507063baf3fa681bb53113cb33adda5e4d7 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 13 Dec 2017 20:12:13 +0100 Subject: prog: don't serialize output data args Fixes #188 We now will write just ""/1000 to denote a 1000-byte output buffer. Also we now don't store 1000-byte buffer in memory just to denote size. Old format is still parsed. --- prog/analysis.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'prog/analysis.go') diff --git a/prog/analysis.go b/prog/analysis.go index 80a127108..fcb00350b 100644 --- a/prog/analysis.go +++ b/prog/analysis.go @@ -58,12 +58,12 @@ func (s *state) analyze(c *Call) { } case *BufferType: a := arg.(*DataArg) - if typ.Dir() != DirOut && len(a.Data) != 0 { + if typ.Dir() != DirOut && len(a.Data()) != 0 { switch typ.Kind { case BufferString: - s.strings[string(a.Data)] = true + s.strings[string(a.Data())] = true case BufferFilename: - s.files[string(a.Data)] = true + s.files[string(a.Data())] = true } } } -- cgit mrf-deployment