kindlich преди 4 години
родител
ревизия
9c4f0081f5
No known key found for this signature in database

+ 4
- 4
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/JavaExpressionVisitor.java Целия файл

@@ -554,14 +554,14 @@ public class JavaExpressionVisitor implements ExpressionVisitor<Void>, JavaNativ
554 554
 			case LONG_INC:
555 555
 			case ULONG_INC:
556 556
 				modify(expression.target, () -> {
557
-					javaWriter.constant(1l);
557
+					javaWriter.constant(1L);
558 558
 					javaWriter.iAdd();
559 559
 				}, PushOption.AFTER);
560 560
 				return null;
561 561
 			case LONG_DEC:
562 562
 			case ULONG_DEC:
563 563
 				modify(expression.target, () -> {
564
-					javaWriter.constant(1l);
564
+					javaWriter.constant(1L);
565 565
 					javaWriter.iSub();
566 566
 				}, PushOption.AFTER);
567 567
 				return null;
@@ -3897,14 +3897,14 @@ public class JavaExpressionVisitor implements ExpressionVisitor<Void>, JavaNativ
3897 3897
 				case LONG_INC:
3898 3898
 				case ULONG_INC:
3899 3899
 					modify(expression.target, () -> {
3900
-						javaWriter.constant(1l);
3900
+						javaWriter.constant(1L);
3901 3901
 						javaWriter.lAdd();
3902 3902
 					}, PushOption.BEFORE);
3903 3903
 					return null;
3904 3904
 				case LONG_DEC:
3905 3905
 				case ULONG_DEC:
3906 3906
 					modify(expression.target, () -> {
3907
-						javaWriter.constant(1l);
3907
+						javaWriter.constant(1L);
3908 3908
 						javaWriter.lSub();
3909 3909
 					}, PushOption.BEFORE);
3910 3910
 					return null;

+ 1
- 1
Parser/src/main/java/org/openzen/zenscript/parser/expression/ParsedNewExpression.java Целия файл

@@ -53,7 +53,7 @@ public class ParsedNewExpression extends ParsedExpression{
53 53
 			TypeMembers members = scope.getTypeMembers(type);
54 54
 			TypeMemberGroup constructors = members.getOrCreateGroup(OperatorType.CONSTRUCTOR);
55 55
 
56
-			List<StoredType>[] predictedTypes = constructors.predictCallTypes(position, scope, scope.hints, arguments.arguments.size());
56
+			//List<StoredType>[] predictedTypes = constructors.predictCallTypes(position, scope, scope.hints, arguments.arguments.size());
57 57
 			CallArguments compiledArguments = arguments.compileCall(position, scope, null, constructors);
58 58
 			FunctionalMemberRef member = constructors.selectMethod(position, scope, compiledArguments, true, true);
59 59
 			if (member == null)

Loading…
Отказ
Запис