1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Fix type cast error for 64bit compilation

RSP_LoadMatrixX86.cpp:92:28: error: cast from 'u8* {aka unsigned char*}' to 'int' loses precision [-fpermissive]
This commit is contained in:
paradadf 2020-06-13 08:18:53 -04:00 committed by Sergey Lipskiy
parent 4f58d66e96
commit 4c8a40c6d8

View File

@ -1,3 +1,4 @@
#include <stdint.h>
#include "RSP.h"
#include "GBI.h"
@ -89,7 +90,7 @@ LoadLoop:
" loop LoadLoop" "\n\t"
".att_syntax prefix" "\n\t"
: /* no output */
: "f"(recip), "S"((int)RDRAM+address), "D"(mtx), "c"(4)
: "f"(recip), "S"((intptr_t)RDRAM+address), "D"(mtx), "c"(4)
: "memory" );
#endif // WIN32_ASM
}