From c0f10bb42bc9da261116d9c56509da563a33ab53 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Sun, 20 May 2018 15:51:36 +0300 Subject: [PATCH] fix opal error --- lib/risc/padding.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/risc/padding.rb b/lib/risc/padding.rb index e839c43a..37205b34 100644 --- a/lib/risc/padding.rb +++ b/lib/risc/padding.rb @@ -6,7 +6,7 @@ module Padding # objects only come in lengths of multiple of 8 words / 32 bytes # and there is a "hidden" 1 word that is used for debug/check memory corruption def self.padded( len ) - a = 32 * (1 + (len + 3)/32 ) + a = 32 * (1 + ((len + 3)/32).floor ) #puts "#{a} for #{len}" a end