問題タブ [ilasm]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - double NaN および Inf を処理する際の ILASM の問題
double型の値を初期化した簡単なプログラムを作成し、
var a = double.NaN;
Visual Studio 2019、.net Framework 4.5 でプロジェクトをビルドし、ILDASM.exe バージョン 4.0.30319.0 を使用して .il ファイルに逆アセンブルします。
IL_0001: ldc.r8 -nan(ind)
しかし、ILASM.exe バージョン 4.8.3752.0 を使用してアセンブルしようとするとエラーが発生します。
test.il(65) : エラー: トークン '-' の構文エラー: IL_0001: ldc.r8 -nan(ind)
これは Double.PositiveInfinity と Double.NegativeInfinity にも起こりました。誰でも助けることができますか?