trdwll / SteamBridge

An Unreal Engine implementation of the Steamworks API.
https://trdwll.com/experiments/steambridge/
MIT License
133 stars 20 forks source link

Error: cast to 'const char *' from smaller integer type 'char' #16

Closed highlyunavailable closed 3 years ago

highlyunavailable commented 3 years ago

SteamBridge\Public\Core\SteamRemotePlay.h(65,63): error: cast to 'const char *' from smaller integer type 'char' [-Werror,-Wint-to-pointer-cast]

FString GetSessionClientName(int32 SessionID) const { return UTF8_TO_TCHAR(*SteamRemotePlay()->GetSessionClientName(SessionID)); }

This should probably be FString GetSessionClientName(int32 SessionID) const { return UTF8_TO_TCHAR(SteamRemotePlay()->GetSessionClientName(SessionID)); }

instead (remove the dereference of the result of GetSessionClientName) because UTF8_TO_TCHAR casts the input as a pointer.

trdwll commented 3 years ago

This has already been solved in the develop branch.