mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 05:50:29 +02:00
warnin fixin
This commit is contained in:
1 parent
b041bd474b
commit
4a6bc60ea8
5 files changed
+8
-6
No files matched your search
@@ -126,7 +126,7 @@ extern "C" void Java_com_turboviking_libnative_NativeApp_init
|
||||
VFSRegister("", new ZipAssetReader(apkPath.c_str(), "assets/"));
|
||||
|
||||
std::string externalDir = GetJavaString(env, jexternalDir);
|
||||
std::string user_data_path = GetJavaString(env, jdataDir); + "/";
|
||||
std::string user_data_path = GetJavaString(env, jdataDir) + "/";
|
||||
std::string library_path = GetJavaString(env, jlibraryDir) + "/";
|
||||
std::string installID = GetJavaString(env, jinstallID);
|
||||
|
||||
|
||||
+2
-2
@@ -5,11 +5,11 @@
|
||||
|
||||
unsigned int parseHex(const char *_szValue)
|
||||
{
|
||||
int Count, Value = 0;
|
||||
int Value = 0;
|
||||
size_t Finish = strlen(_szValue);
|
||||
if (Finish > 8 ) { Finish = 8; }
|
||||
|
||||
for (Count = 0; Count < Finish; Count++) {
|
||||
for (size_t Count = 0; Count < Finish; Count++) {
|
||||
Value = (Value << 4);
|
||||
switch( _szValue[Count] ) {
|
||||
case '0': break;
|
||||
|
||||
@@ -65,7 +65,7 @@ bool glsl_up_to_date(GLSLProgram *program) {
|
||||
stat(program->vshader_filename, &vs);
|
||||
stat(program->fshader_filename, &fs);
|
||||
if (vs.st_mtime != program->vshader_mtime ||
|
||||
fs.st_mtime != program->fshader_mtime) {
|
||||
fs.st_mtime != program->fshader_mtime) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
||||
@@ -78,6 +78,7 @@ std::vector<std::string> MidiInGetDevices() {
|
||||
|
||||
MidiDevice MidiInStart(int deviceID, MidiListener *listener) {
|
||||
FLOG("Invalid MIDI device");
|
||||
return 0;
|
||||
}
|
||||
|
||||
void MidiInStop(MidiDevice device) {
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
#include "net/http_client.h"
|
||||
|
||||
// for inet_pton
|
||||
#undef _WIN32_WINNT
|
||||
#define _WIN32_WINNT 0x600
|
||||
|
||||
#ifndef _WIN32
|
||||
@@ -34,7 +35,7 @@ Connection::~Connection() {
|
||||
}
|
||||
|
||||
bool Connection::Resolve(const char *host, int port) {
|
||||
CHECK_EQ(-1, sock_);
|
||||
CHECK_EQ(-1, (intptr_t)sock_);
|
||||
host_ = host;
|
||||
port_ = port;
|
||||
|
||||
@@ -68,7 +69,7 @@ void Connection::Connect() {
|
||||
}
|
||||
|
||||
void Connection::Disconnect() {
|
||||
if (sock_ != -1) {
|
||||
if ((intptr_t)sock_ != -1) {
|
||||
closesocket(sock_);
|
||||
sock_ = -1;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user