On Tue, Aug 06, 2013 at 03:55:02PM -0700, Jonathan Kotker wrote: > int a = (int)((3.0 > 2.0) ? 1.0 : 4.0); > > CIL does not seem to like this code, complaining about global initializers > on the first line. However, this is not a problem if the constants are > integers. Is there any way to stop / ignore CIL complaining about this?
I believe this is because CIL does integer propagation, but not floating-point. However, if you add the flag --useLogicalOperators, it should preserve the ternary operator :? and accept the program. -- Gabriel ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users