From 7f4511b62429daab42df77d5522fb7e5dcb66671 Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Tue, 17 Oct 2023 15:57:23 +0200 Subject: [PATCH] stupid stupid Cyril -_- --- src/Hermes/HEInstaller.class.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hermes/HEInstaller.class.st b/src/Hermes/HEInstaller.class.st index d013eb0..c9ed8a1 100644 --- a/src/Hermes/HEInstaller.class.st +++ b/src/Hermes/HEInstaller.class.st @@ -217,7 +217,7 @@ HEInstaller >> rebuildMethod: aMethod into: aClass [ self flag: #pharo11. "If Pharo12 the management of the method trailer changed and the way to create a new method changed too." newMethod := CompiledMethod - newMethod: (SystemVersion current major > 12 + newMethod: (SystemVersion current major >= 12 ifTrue: [ aMethod bytecode size + CompiledMethod trailerSize ] ifFalse: [ aMethod bytecode size ]) header: (aMethod headerFor: extendedEnvironment).