https://github.com/vim/vim/pull/14845
(2 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
@yegappan pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.
@chrisbra commented on this pull request.
In src/eval.c:
> clear_tv(&var1); - return p; + clear_tv(&var2); + return rc == OK ? p : NULL;
This got me wondering. Is it fine to call clear_tv()
for var1
and var2
twice? Once on line 1890+1891 and then here on line 1897 and 1898 again when the loop finished?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@yegappan commented on this pull request.
Only simple types like number, string, bool and float can be used to index a List, Dict, Blob, Object or a Class.
Other composite types are not supported as index values. With the simple types, clear_tv() can be called twice
without causing any reference counting issues. When encountering an unsupported composite type, this
function will jump to the end of the function, where the type is cleared only once.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@yegappan commented on this pull request.
In src/eval.c:
> clear_tv(&var1); - return p; + clear_tv(&var2); + return rc == OK ? p : NULL;
Patch 8.0.0352 (f06e5a5) is related to this.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
@yegappan pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.
@chrisbra commented on this pull request.
okay thanks
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.