#define GET_MY_TSTATE(val, stmt) \
if (stmt != NULL) \
- val = ((MY_MODULE_TSTATE *)(stmt)->module_data[MY_MODULE_ID]); \
- else \
- val = NULL
+ val = ((MY_MODULE_TSTATE *)(stmt)->module_data[MY_MODULE_ID]);
#define COREGL_INIT_ORIGINAL(orig_prefix, f) \
{ \
}
#define FIND_OBJ_FROM_HASH_WITH_VERIFY(hash_base, hash, object) \
- if ((hash) < 0) { ret = 0; goto finish; } \
+ if (((int)(hash)) < 0) { ret = 0; goto finish; } \
{ \
GL_Object_Hash *object_hash = NULL; \
- FIND_HASH((hash_base), (hash), object_hash); \
+ FIND_HASH((hash_base), (int)(hash), object_hash); \
if (object_hash == NULL) { ret = 0; goto finish; } \
(object) = object_hash->item; \
if ((object) == NULL) { ret = 0; goto finish; } \
if (sostate_new == NULL)
{
COREGL_ERR("\E[40;31;1mError creating a new GLGlueContext(Memory full 4)\E[0m\n");
- free(gctx);
- gctx = NULL;
goto finish;
}
fastpath_sostate_init(sostate_new);
if (gctx_list_new == NULL)
{
COREGL_ERR("\E[40;31;1mError creating a new GlGlueContext(Memory full 5)\E[0m\n");
- free(gctx);
- gctx = NULL;
goto finish;
}