We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bed38d commit 6543d7dCopy full SHA for 6543d7d
src/account.zig
@@ -93,9 +93,9 @@ pub const Account = struct {
93
pub fn dataLen(self: Account) u64 {
94
return self.ptr.data_len;
95
}
96
-
97
- pub fn realloc(self: Account, new_data_len: u64) error.InvalidRealloc!void {
98
- const diff = @subWithOverflow(new_data_len, self.original_data_len);
+
+ pub fn realloc(self: Account, new_data_len: u64) error{InvalidRealloc}!void {
+ const diff = @subWithOverflow(new_data_len, self.ptr.original_data_len);
99
if (diff[1] == 0 and diff[0] > ACCOUNT_DATA_PADDING) {
100
return error.InvalidRealloc;
101
0 commit comments