Files

12 lines
660 B
Diff
Raw Permalink Normal View History

2025-02-23 01:57:29 +08:00
--- libyul/ObjectOptimizer.cpp.orig 2025-02-18 15:37:12
+++ libyul/ObjectOptimizer.cpp 2025-02-18 15:38:24
@@ -153,7 +153,7 @@
// we just regenerate them by reparsing the object.
rawKey += keccak256(asmPrinter(_ast)).asBytes();
rawKey += keccak256(_debugData.formatUseSrcComment()).asBytes();
- rawKey += h256(u256(_settings.language)).asBytes();
+ rawKey += h256(u256(static_cast<uint8_t>(_settings.language))).asBytes();
rawKey += FixedHash<1>(uint8_t(_settings.optimizeStackAllocation ? 0 : 1)).asBytes();
rawKey += h256(u256(_settings.expectedExecutionsPerDeployment)).asBytes();
rawKey += FixedHash<1>(uint8_t(_isCreation ? 0 : 1)).asBytes();