diff options
author | Wei Tang <gauchyler@uestc.edu.cn> | 2022-10-11 10:49:05 +0800 |
---|---|---|
committer | Wei Tang <gauchyler@uestc.edu.cn> | 2022-10-11 10:58:11 +0800 |
commit | 63ab3337e03a6ec1463ec39e46162f4653f09bea (patch) | |
tree | 943acd490df004c49aa7a5b17f0f11b2372a72bb /scripts/lua2dox.lua | |
parent | 8f0b94b36d4d6687712ccfc525284f1fac58d2f6 (diff) | |
download | rneovim-63ab3337e03a6ec1463ec39e46162f4653f09bea.tar.gz rneovim-63ab3337e03a6ec1463ec39e46162f4653f09bea.tar.bz2 rneovim-63ab3337e03a6ec1463ec39e46162f4653f09bea.zip |
refactor: explicitly convert HANDLE to intptr_t for _open_osfhandle()
Problem:
The first parameter of "_open_osfhandle()" is an intptr_t; however, a HANDLE is passed.
The official documentation of [_open_osfhandle](https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/open-osfhandle) suggests to cast the HANDLE to intptr_t.
MSVC/cl is able to perform an implicit type cast.
However, LLVM/clang-cl will generate an compilation error.
Solution:
Explicitly convert HANDLE to intptr_t for _open_osfhandle().
Diffstat (limited to 'scripts/lua2dox.lua')
0 files changed, 0 insertions, 0 deletions