From e9720c4c5476daf9526bc70359c0758f96694428 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Wed, 28 May 2014 14:27:37 +0300 Subject: [PATCH] padding with space not zero --- lib/vm/constants.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vm/constants.rb b/lib/vm/constants.rb index 41fdc930..cefa550e 100644 --- a/lib/vm/constants.rb +++ b/lib/vm/constants.rb @@ -30,7 +30,7 @@ module Vm # rounding up to the next 4 (always adding one for zero pad) pad = ((length / 4 ) + 1 ) * 4 - length raise "#{pad} #{self}" unless pad >= 1 - @string = str + "\x00" * pad + @string = str + " " * pad end def result= value