File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 46
46
47
47
steps :
48
48
- uses : actions/checkout@v2
49
- - name : Build windows-i386
49
+ - name : Build windows-amd64
50
50
run : |
51
51
git submodule init && git submodule update
52
52
./waf.bat configure -T debug -8
Original file line number Diff line number Diff line change @@ -322,10 +322,17 @@ int ParseDirective( const char *pText )
322
322
{
323
323
if ( ParseFloats ( pText, tempFloat, 4 ) )
324
324
{
325
- for ( int i = 0 ; i < 4 ; ++i )
325
+ // that's original code, msvc2015 generates illegal instruction on amd64 architecture
326
+ /* for ( int i = 0; i < 4; ++i )
326
327
{
327
328
gMessageParms.boxcolor[ i ] = (byte)(int)tempFloat[ i ];
328
- }
329
+ }*/
330
+
331
+ // workaround
332
+ gMessageParms .boxcolor [0 ] = (int )tempFloat[0 ];
333
+ gMessageParms .boxcolor [1 ] = (int )tempFloat[1 ];
334
+ gMessageParms .boxcolor [2 ] = (int )tempFloat[2 ];
335
+ gMessageParms .boxcolor [3 ] = (int )tempFloat[3 ];
329
336
}
330
337
}
331
338
else if ( IsToken ( pText, " clearmessage" ) )
You can’t perform that action at this time.
0 commit comments