some ints should be long

This commit is contained in:
jsorg71
2005-03-08 03:31:14 +00:00
parent d5dea39baf
commit 777893bdd6
4 changed files with 10 additions and 8 deletions
+4 -4
View File
@@ -870,17 +870,17 @@ int g_strcmp(char* c1, char* c2)
}
/*****************************************************************************/
int g_load_library(char* in)
long g_load_library(char* in)
{
#if defined(_WIN32)
return 0;
#else
return (int)dlopen(in, RTLD_LOCAL | RTLD_LAZY);
return (long)dlopen(in, RTLD_LOCAL | RTLD_LAZY);
#endif
}
/*****************************************************************************/
int g_free_library(int lib)
int g_free_library(long lib)
{
if (lib == 0)
{
@@ -895,7 +895,7 @@ int g_free_library(int lib)
/*****************************************************************************/
/* returns NULL if not found */
void* g_get_proc_address(int lib, char* name)
void* g_get_proc_address(long lib, char* name)
{
if (lib == 0)
{
+3 -3
View File
@@ -160,7 +160,7 @@ struct stream
#if defined(B_ENDIAN) || defined(NEED_ALIGN)
#define in_uint32_le(s, v) \
{ \
v = (unsigned long) \
v = (unsigned int) \
( \
(*((unsigned char*)(s->p + 0)) << 0) | \
(*((unsigned char*)(s->p + 1)) << 8) | \
@@ -172,7 +172,7 @@ struct stream
#else
#define in_uint32_le(s, v) \
{ \
v = *((unsigned long*)(s->p)); \
v = *((unsigned int*)(s->p)); \
s->p += 4; \
}
#endif
@@ -242,7 +242,7 @@ struct stream
#else
#define out_uint32_le(s, v) \
{ \
*((unsigned long*)(s->p)) = (v); \
*((unsigned int*)(s->p)) = (v); \
s->p += 4; \
}
#endif