[Mono-dev] 3 patches for Mono.CodeGeneration

Lionel Cuir lionel_email at aulofee.com
Mon Sep 29 03:45:23 EDT 2008


Hello all,
 
Thanks for the quick reply on where the latest Mono.CodeGeneration code had
been moved in svn.
 
Here are 3 patches - pitfully without unit test (as our own library has been
heavily customized and it'd take time to rewrite them).
The bugs fixed are nevetheless quite obvious:
- CoreOrcs and CoreAnd.cs: in the Generate method, the first expression had
it IL generated twice => 1 line removed for each class.
- CodeLiteral.cs: the fact that the "value" was boxed was not taken into
account and was crashing if the value was not an int (ex: object value =
(byte)1; int i = (int)value => exception thrown)
 
Regards
 
Lionel
http://www.aulofee.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080929/ebea31c0/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff_CodeOr.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080929/ebea31c0/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff_CodeAnd.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080929/ebea31c0/attachment-0001.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff_CodeLiteral.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080929/ebea31c0/attachment-0002.pl 


More information about the Mono-devel-list mailing list