Fix some type comparion warnings.

This commit is contained in:
Unknown W. Brackets 2014-04-27 20:17:22 -07:00
parent db1ca2f89f
commit 5f6a2e498a
4 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ private:
ALuint m_buffers[g_al_buffers_count];
ALCdevice* m_device;
ALCcontext* m_context;
u32 m_buffer_size;
ALsizei m_buffer_size;
public:
~OpenALThread();

View File

@ -44,7 +44,7 @@ s64 FindOp(const std::string& text, const std::string& op, s64 from)
{
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]))
{
@ -156,8 +156,8 @@ void CompilePPUProgram::WriteError(const std::string& error)
bool CompilePPUProgram::IsSkip(const char c) { return c == ' ' || c == '\t'; }
bool CompilePPUProgram::IsCommit(const char c) { return c == '#'; }
bool CompilePPUProgram::IsEnd() const { return p >= m_asm.length(); }
bool CompilePPUProgram::IsEndLn(const char c) const { return c == '\n' || p - 1 >= 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 >= (s64)m_asm.length(); }
char CompilePPUProgram::NextChar() { return *m_asm.substr(p++, 1).c_str(); }
void CompilePPUProgram::NextLn() { while( !IsEndLn(NextChar()) ); if(!IsEnd()) m_line++; }

View File

@ -210,7 +210,7 @@ void MemoryViewerPanel::ShowMemory()
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);

View File

@ -41,5 +41,5 @@ public:
void SetPC(const uint pc) { m_addr = pc; }
//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);
};