mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
build/msvc: Fix libvterm patch
This commit is contained in:
parent
a9c94f7bb0
commit
afd46b78c5
@ -23,7 +23,7 @@ index 84299df..f9aabb3 100644
|
||||
|
||||
// We'll have at most len codepoints
|
||||
- uint32_t codepoints[len];
|
||||
+ uint32_t* codepoints = _alloca(len);
|
||||
+ uint32_t* codepoints = _alloca(len * sizeof(uint32_t));
|
||||
int npoints = 0;
|
||||
size_t eaten = 0;
|
||||
|
||||
@ -32,7 +32,7 @@ index 84299df..f9aabb3 100644
|
||||
int width = 0;
|
||||
|
||||
- uint32_t chars[glyph_ends - glyph_starts + 1];
|
||||
+ uint32_t* chars = _alloca(glyph_ends - glyph_starts + 1);
|
||||
+ uint32_t* chars = _alloca((glyph_ends - glyph_starts + 1) * sizeof(uint32_t));
|
||||
|
||||
for( ; i < glyph_ends; i++) {
|
||||
chars[i - glyph_starts] = codepoints[i];
|
||||
|
Loading…
Reference in New Issue
Block a user