Files
mvel2/00-fix-samples.patch

13 lines
494 B
Diff

diff -up mvel-mvel2-2.4.14.Final/samples/scripts/randomguess.mvel.p00 mvel-mvel2-2.4.14.Final/samples/scripts/randomguess.mvel
--- mvel-mvel2-2.4.14.Final/samples/scripts/randomguess.mvel.p00 2022-04-27 18:41:12.868693037 +0300
+++ mvel-mvel2-2.4.14.Final/samples/scripts/randomguess.mvel 2022-04-27 18:41:35.276731751 +0300
@@ -10,7 +10,7 @@ import java.io.*;
// Seed the random number
//
-$num = (int) Math.random() * 100;
+$num = (int) (Math.random() * 100);
$guesses = 0;
$in = -1;