mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Avoid always-true and signed/unsigned comparisons.
Make empty while loops a little more obvious with a {} suffix. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6019 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
44
Externals/CLRun/clrun/clrun.c
vendored
44
Externals/CLRun/clrun/clrun.c
vendored
@ -36,26 +36,26 @@ int clrHasOpenCL() {
|
||||
}
|
||||
|
||||
|
||||
// Windows-specific DLL code
|
||||
#if defined _WIN32 && defined CLRUN_DYNAMICLIB
|
||||
HINSTANCE g_hInstance;
|
||||
|
||||
BOOL APIENTRY DllMain(HINSTANCE hinstDLL, // DLL module handle
|
||||
DWORD dwReason, // reason called
|
||||
LPVOID lpvReserved) // reserved
|
||||
{
|
||||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
break;
|
||||
|
||||
case DLL_PROCESS_DETACH:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
g_hInstance = hinstDLL;
|
||||
return TRUE;
|
||||
}
|
||||
// Windows-specific DLL code
|
||||
#if defined _WIN32 && defined CLRUN_DYNAMICLIB
|
||||
HINSTANCE g_hInstance;
|
||||
|
||||
BOOL APIENTRY DllMain(HINSTANCE hinstDLL, // DLL module handle
|
||||
DWORD dwReason, // reason called
|
||||
LPVOID lpvReserved) // reserved
|
||||
{
|
||||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
break;
|
||||
|
||||
case DLL_PROCESS_DETACH:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
g_hInstance = hinstDLL;
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
7510
Externals/SOIL/stb_image_aug.c
vendored
7510
Externals/SOIL/stb_image_aug.c
vendored
File diff suppressed because it is too large
Load Diff
11
Externals/SOIL/stbi_DDS_aug_c.h
vendored
11
Externals/SOIL/stbi_DDS_aug_c.h
vendored
@ -271,12 +271,13 @@ static stbi_uc *dds_load(stbi *s, int *x, int *y, int *comp, int req_comp)
|
||||
stbi_uc *dds_data = NULL;
|
||||
stbi_uc block[16*4];
|
||||
stbi_uc compressed[8];
|
||||
int flags, DXT_family;
|
||||
unsigned int flags;
|
||||
int DXT_family;
|
||||
int has_alpha, has_mipmap;
|
||||
int is_compressed, cubemap_faces;
|
||||
int block_pitch, num_blocks;
|
||||
int block_pitch, cf;
|
||||
DDS_header header;
|
||||
int i, sz, cf;
|
||||
unsigned int i, num_blocks, sz;
|
||||
// load the header
|
||||
if( sizeof( DDS_header ) != 128 )
|
||||
{
|
||||
@ -335,8 +336,8 @@ static stbi_uc *dds_load(stbi *s, int *x, int *y, int *comp, int req_comp)
|
||||
{
|
||||
// where are we?
|
||||
int bx, by, bw=4, bh=4;
|
||||
int ref_x = 4 * (i % block_pitch);
|
||||
int ref_y = 4 * (i / block_pitch);
|
||||
unsigned int ref_x = 4 * (i % block_pitch);
|
||||
unsigned int ref_y = 4 * (i / block_pitch);
|
||||
// get the next block's worth of compressed data, and decompress it
|
||||
if( DXT_family == 1 )
|
||||
{
|
||||
|
2
Externals/WiiUse/Src/io_osx.m
vendored
2
Externals/WiiUse/Src/io_osx.m
vendored
@ -56,7 +56,7 @@ volatile int reader, writer, outstanding, watermark;
|
||||
|
||||
@interface SearchBT: NSObject {
|
||||
@public
|
||||
int maxDevices;
|
||||
unsigned int maxDevices;
|
||||
}
|
||||
@end
|
||||
|
||||
|
Reference in New Issue
Block a user