mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 15:31:26 +12:00
Fix some type comparion warnings.
This commit is contained in:
parent
db1ca2f89f
commit
5f6a2e498a
4 changed files with 6 additions and 6 deletions
|
@ -12,7 +12,7 @@ private:
|
||||||
ALuint m_buffers[g_al_buffers_count];
|
ALuint m_buffers[g_al_buffers_count];
|
||||||
ALCdevice* m_device;
|
ALCdevice* m_device;
|
||||||
ALCcontext* m_context;
|
ALCcontext* m_context;
|
||||||
u32 m_buffer_size;
|
ALsizei m_buffer_size;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
~OpenALThread();
|
~OpenALThread();
|
||||||
|
|
|
@ -44,7 +44,7 @@ s64 FindOp(const std::string& text, const std::string& op, s64 from)
|
||||||
{
|
{
|
||||||
if (text.length() < op.length()) return -1;
|
if (text.length() < op.length()) return -1;
|
||||||
|
|
||||||
for (s64 i = from; i<text.length(); ++i)
|
for (s64 i = from; i < (s64)text.length(); ++i)
|
||||||
{
|
{
|
||||||
if(i - 1 < 0 || text[(size_t)i - 1] == '\n' || CompilePPUProgram::IsSkip(text[(size_t)i - 1]))
|
if(i - 1 < 0 || text[(size_t)i - 1] == '\n' || CompilePPUProgram::IsSkip(text[(size_t)i - 1]))
|
||||||
{
|
{
|
||||||
|
@ -156,8 +156,8 @@ void CompilePPUProgram::WriteError(const std::string& error)
|
||||||
|
|
||||||
bool CompilePPUProgram::IsSkip(const char c) { return c == ' ' || c == '\t'; }
|
bool CompilePPUProgram::IsSkip(const char c) { return c == ' ' || c == '\t'; }
|
||||||
bool CompilePPUProgram::IsCommit(const char c) { return c == '#'; }
|
bool CompilePPUProgram::IsCommit(const char c) { return c == '#'; }
|
||||||
bool CompilePPUProgram::IsEnd() const { return p >= m_asm.length(); }
|
bool CompilePPUProgram::IsEnd() const { return p >= (s64)m_asm.length(); }
|
||||||
bool CompilePPUProgram::IsEndLn(const char c) const { return c == '\n' || p - 1 >= m_asm.length(); }
|
bool CompilePPUProgram::IsEndLn(const char c) const { return c == '\n' || p - 1 >= (s64)m_asm.length(); }
|
||||||
|
|
||||||
char CompilePPUProgram::NextChar() { return *m_asm.substr(p++, 1).c_str(); }
|
char CompilePPUProgram::NextChar() { return *m_asm.substr(p++, 1).c_str(); }
|
||||||
void CompilePPUProgram::NextLn() { while( !IsEndLn(NextChar()) ); if(!IsEnd()) m_line++; }
|
void CompilePPUProgram::NextLn() { while( !IsEndLn(NextChar()) ); if(!IsEnd()) m_line++; }
|
||||||
|
|
|
@ -210,7 +210,7 @@ void MemoryViewerPanel::ShowMemory()
|
||||||
t_mem_ascii->SetValue(t_mem_ascii_str);
|
t_mem_ascii->SetValue(t_mem_ascii_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MemoryViewerPanel::ShowImage(wxWindow* parent, u32 addr, int mode, int width, int height, bool flipv)
|
void MemoryViewerPanel::ShowImage(wxWindow* parent, u32 addr, int mode, u32 width, u32 height, bool flipv)
|
||||||
{
|
{
|
||||||
wxString title = wxString::Format("Raw Image @ 0x%x", addr);
|
wxString title = wxString::Format("Raw Image @ 0x%x", addr);
|
||||||
|
|
||||||
|
|
|
@ -41,5 +41,5 @@ public:
|
||||||
void SetPC(const uint pc) { m_addr = pc; }
|
void SetPC(const uint pc) { m_addr = pc; }
|
||||||
|
|
||||||
//Static methods
|
//Static methods
|
||||||
static void ShowImage(wxWindow* parent, u32 addr, int mode, int sizex, int sizey, bool flipv);
|
static void ShowImage(wxWindow* parent, u32 addr, int mode, u32 sizex, u32 sizey, bool flipv);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue