Core: Address some obvious lgtm issues
This commit is contained in:
parent
62837f4db0
commit
75215ec0d1
|
@ -302,10 +302,9 @@ function reset() {
|
|||
}
|
||||
|
||||
socket_lm.onmessage =function got_packet(msg) {
|
||||
j = msg.data.split(';');
|
||||
f = 0;
|
||||
var j = msg.data.split(';'), f = 0;
|
||||
while (f < j.length - 1) {
|
||||
i = j[f].split(' ');
|
||||
var i = j[f].split(' ');
|
||||
if (i[0] == 'd') {
|
||||
ctx.strokeStyle = i[1];
|
||||
ctx.beginPath();
|
||||
|
|
|
@ -140,7 +140,7 @@ bool CHDDisc::TryOpen(const wchar* file)
|
|||
|
||||
if (total_frames!=549300 || tracks.size()<3)
|
||||
{
|
||||
printf("WARNING: chd: Total frames is wrong: %d frames in %d tracks\n",total_frames,tracks.size());
|
||||
printf("WARNING: chd: Total frames is wrong: %u frames in %u tracks\n",total_frames,tracks.size());
|
||||
#ifndef NOT_REICAST
|
||||
msgboxf("This is an improper dump!",MBX_ICONEXCLAMATION);
|
||||
#endif
|
||||
|
|
|
@ -243,7 +243,7 @@ bool DiscSwap(u32 fileflags)
|
|||
printf("Loading default image \"%s\"\n",settings.imgread.DefaultImage);
|
||||
if (!InitDrive_(settings.imgread.DefaultImage))
|
||||
{
|
||||
msgboxf("Default image \"%s\" failed to load",MBX_ICONERROR);
|
||||
msgboxf("Default image \"%s\" failed to load",MBX_ICONERROR,settings.imgread.DefaultImage);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -330,7 +330,7 @@ void common_linux_setup()
|
|||
|
||||
settings.profile.run_counts=0;
|
||||
|
||||
printf("Linux paging: %08X %08X %08X\n",sysconf(_SC_PAGESIZE),PAGE_SIZE,PAGE_MASK);
|
||||
printf("Linux paging: %ld %08X %08X\n",sysconf(_SC_PAGESIZE),PAGE_SIZE,PAGE_MASK);
|
||||
verify(PAGE_MASK==(sysconf(_SC_PAGESIZE)-1));
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -746,8 +746,6 @@ GLuint gl_CompileShader(const char* shader,GLuint type)
|
|||
|
||||
if (!result && compile_log_len>0)
|
||||
{
|
||||
if (compile_log_len==0)
|
||||
compile_log_len=1;
|
||||
char* compile_log=(char*)malloc(compile_log_len);
|
||||
*compile_log=0;
|
||||
|
||||
|
@ -791,8 +789,6 @@ GLuint gl_CompileAndLink(const char* VertexShader, const char* FragmentShader)
|
|||
|
||||
if (!result && compile_log_len>0)
|
||||
{
|
||||
if (compile_log_len==0)
|
||||
compile_log_len=1;
|
||||
compile_log_len+= 1024;
|
||||
char* compile_log=(char*)malloc(compile_log_len);
|
||||
*compile_log=0;
|
||||
|
@ -1035,7 +1031,7 @@ void tryfit(float* x,float* y)
|
|||
int rep=1;
|
||||
|
||||
//discard values clipped to 0 or 1
|
||||
if (i<128 && y[i]==1 && y[i+1]==1)
|
||||
if (y[i]==1 && y[i+1]==1)
|
||||
continue;
|
||||
|
||||
if (i>0 && y[i]==0 && y[i-1]==0)
|
||||
|
@ -1045,7 +1041,7 @@ void tryfit(float* x,float* y)
|
|||
if (i>0 && y[i]!=1 && y[i-1]==1)
|
||||
rep=10000;
|
||||
|
||||
if (i<128 && y[i]!=0 && y[i+1]==0)
|
||||
if (y[i]!=0 && y[i+1]==0)
|
||||
rep=10000;
|
||||
|
||||
for (int j=0;j<rep;j++)
|
||||
|
|
Loading…
Reference in New Issue