Browse Source

First minor cleanups

kindlich 4 years ago
parent
commit
9c4f0081f5
No known key found for this signature in database

+ 4
- 4
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/JavaExpressionVisitor.java View File

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

+ 1
- 1
Parser/src/main/java/org/openzen/zenscript/parser/expression/ParsedNewExpression.java View File

53
 			TypeMembers members = scope.getTypeMembers(type);
53
 			TypeMembers members = scope.getTypeMembers(type);
54
 			TypeMemberGroup constructors = members.getOrCreateGroup(OperatorType.CONSTRUCTOR);
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
 			CallArguments compiledArguments = arguments.compileCall(position, scope, null, constructors);
57
 			CallArguments compiledArguments = arguments.compileCall(position, scope, null, constructors);
58
 			FunctionalMemberRef member = constructors.selectMethod(position, scope, compiledArguments, true, true);
58
 			FunctionalMemberRef member = constructors.selectMethod(position, scope, compiledArguments, true, true);
59
 			if (member == null)
59
 			if (member == null)

Loading…
Cancel
Save