Changeset 14809 for trunk/sources
- Timestamp:
- 03/31/17 14:36:43 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/SymbolicDataAnalysisExpressionTreeILEmittingInterpreter.cs
r14185 r14809 259 259 il.Emit(System.Reflection.Emit.OpCodes.Add); 260 260 } 261 il.Emit(System.Reflection.Emit.OpCodes.Ldc_ I4,nArgs);261 il.Emit(System.Reflection.Emit.OpCodes.Ldc_R8, (double)nArgs); 262 262 il.Emit(System.Reflection.Emit.OpCodes.Div); 263 263 return; … … 457 457 il.Emit(System.Reflection.Emit.OpCodes.Ldc_I4_0); // > 0 458 458 il.Emit(System.Reflection.Emit.OpCodes.Cgt); 459 il.Emit(System.Reflection.Emit.OpCodes.Conv_R8); // convert to float64 459 460 il.Emit(System.Reflection.Emit.OpCodes.Ldc_R8, 2.0); // * 2 460 461 il.Emit(System.Reflection.Emit.OpCodes.Mul); … … 475 476 il.Emit(System.Reflection.Emit.OpCodes.Xor); 476 477 } 478 il.Emit(System.Reflection.Emit.OpCodes.Conv_R8); // convert to float64 479 477 480 il.Emit(System.Reflection.Emit.OpCodes.Ldc_R8, 2.0); // * 2 478 481 il.Emit(System.Reflection.Emit.OpCodes.Mul); … … 486 489 487 490 il.Emit(System.Reflection.Emit.OpCodes.Cgt); // 1 (>) / 0 (otherwise) 491 il.Emit(System.Reflection.Emit.OpCodes.Conv_R8); // convert to float64 488 492 il.Emit(System.Reflection.Emit.OpCodes.Ldc_R8, 2.0); // * 2 489 493 il.Emit(System.Reflection.Emit.OpCodes.Mul); … … 496 500 CompileInstructions(il, state, ds); 497 501 il.Emit(System.Reflection.Emit.OpCodes.Clt); 502 il.Emit(System.Reflection.Emit.OpCodes.Conv_R8); // convert to float64 498 503 il.Emit(System.Reflection.Emit.OpCodes.Ldc_R8, 2.0); // * 2 499 504 il.Emit(System.Reflection.Emit.OpCodes.Mul);
Note: See TracChangeset
for help on using the changeset viewer.