Commit 4c48cf3
committed
f_getenv/setenv: Access v_special when v_type is VAR_SPECIAL
Multiple Debian builds were failing these tests:
Failures:
From test_environ.vim:
Found errors in Test_external_env():
function RunTheTest[37]..Test_external_env line 16: Expected '' but got 'FOO=null\n'
Found errors in Test_getenv():
function RunTheTest[37]..Test_getenv line 2: Expected v:null but got v:false
Found errors in Test_setenv():
function RunTheTest[37]..Test_setenv line 5: Expected v:null but got 'null'
This is because nvim has a separate tag (`v_special`) in `typval_T` for
special variables, whereas vim re-uses the `v_number` tag.
On little-endian architectures, using the incorrect tag is not an issue
because the byte representation is the same. However, on big-endian
systems this caused the `v_number == kSpecialVarNull` checks to fail,
and the non-special code to execute.1 parent e2cc5fe commit 4c48cf3
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8492 | 8492 | | |
8493 | 8493 | | |
8494 | 8494 | | |
8495 | | - | |
| 8495 | + | |
8496 | 8496 | | |
8497 | 8497 | | |
8498 | 8498 | | |
| |||
15441 | 15441 | | |
15442 | 15442 | | |
15443 | 15443 | | |
15444 | | - | |
| 15444 | + | |
15445 | 15445 | | |
15446 | 15446 | | |
15447 | 15447 | | |
| |||
0 commit comments