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 4646
4747 steps :
4848 - uses : actions/checkout@v2
49- - name : Build windows-i386
49+ - name : Build windows-amd64
5050 run : |
5151 git submodule init && git submodule update
5252 ./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 )
322322 {
323323 if ( ParseFloats ( pText, tempFloat, 4 ) )
324324 {
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 )
326327 {
327328 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 ];
329336 }
330337 }
331338 else if ( IsToken ( pText, " clearmessage" ) )
You can’t perform that action at this time.
0 commit comments