removed some warnings

This commit is contained in:
Campbell Barton 2008-11-11 04:42:15 +00:00
parent 8b32ad784b
commit 13fe65cf46
2 changed files with 2 additions and 2 deletions

@ -416,7 +416,7 @@ void *BLI_pointer_from_int(int val);
* @param member The name of a member field of @a strct
* @retval The offset in bytes of @a member within @a strct
*/
#define BLI_STRUCT_OFFSET(strct, member) ((int) &((strct*) 0)->member)
#define BLI_STRUCT_OFFSET(strct, member) ((int)(intptr_t) &((strct*) 0)->member)
#ifdef __cplusplus
}

@ -508,7 +508,7 @@ void poselib_rename_pose (Object *ob)
if (marker == NULL) return;
/* get name of pose */
sprintf(name, marker->name);
strncpy(name, marker->name, sizeof(name));
if (sbutton(name, 0, sizeof(name)-1, "Name: ") == 0)
return;