There was an error while loading. Please reload this page.
1 parent 6cd98d2 commit 90faef6Copy full SHA for 90faef6
1 file changed
std/std.solc
@@ -2672,6 +2672,18 @@ instance bytes4:MemoryEncode {
2672
}
2673
2674
2675
+instance uint256:MemorySize {
2676
+ function len(v: uint256) -> word {
2677
+ return 32;
2678
+ }
2679
+}
2680
+
2681
+instance uint256:MemoryEncode {
2682
+ function encodeInto(v: uint256, target: word) -> () {
2683
+ mstore(target, Typedef.rep(v));
2684
2685
2686
2687
instance memory(bytes):MemorySize {
2688
function len(v: memory(bytes)) -> word {
2689
return mload(Typedef.rep(v));
0 commit comments