diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-08-28 22:03:06 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-08-28 22:03:06 +0900 |
commit | 1c138327e0537bb55f7d0810f6fe7e1c7f63b6c5 (patch) | |
tree | 8bccd06228a34b06775cfe4b94c145ecf6af7865 /re.c | |
parent | 7e1fddba4a609cb7bf4a696eccd892e68753bb21 (diff) |
Try to fix compile error on windows
https://github.com/ruby/ruby/runs/1041040167?check_suite_focus=true#step:11:177
```
compiling ../src/re.c
re.c
../src/re.c(317): error C2057: expected constant expression
../src/re.c(317): error C2466: cannot allocate an array of constant size 0
../src/re.c(467): error C2057: expected constant expression
../src/re.c(467): error C2466: cannot allocate an array of constant size 0
../src/re.c(467): error C2133: 'opts': unknown size
../src/re.c(559): error C2057: expected constant expression
../src/re.c(559): error C2466: cannot allocate an array of constant size 0
../src/re.c(559): error C2133: 'optbuf': unknown size
../src/re.c(673): error C2057: expected constant expression
../src/re.c(673): error C2466: cannot allocate an array of constant size 0
../src/re.c(673): error C2133: 'opts': unknown size
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\cl.EXE"' : return code '0x2'
Stop.
```
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -311,7 +311,7 @@ char_to_option(int c) return val; } -static const int OPTBUF_SIZE = 4; +enum { OPTBUF_SIZE = 4 }; static char * option_to_str(char str[OPTBUF_SIZE], int options) |