code cleanup: use ptrdiff_t when comparing pointers and tag event as an unused arg to move_to_layer_invoke()

This commit is contained in:
Campbell Barton
2012-11-13 15:46:55 +00:00
parent f9428065b8
commit f579aea076
2 changed files with 2 additions and 2 deletions

View File

@@ -1225,7 +1225,7 @@ static unsigned int move_to_layer_init(bContext *C, wmOperator *op)
return lay;
}
static int move_to_layer_invoke(bContext *C, wmOperator *op, wmEvent *event)
static int move_to_layer_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
{
View3D *v3d = CTX_wm_view3d(C);
if (v3d && v3d->localvd) {

View File

@@ -881,7 +881,7 @@ void IMB_exr_close(void *handle)
/* get a substring from the end of the name, separated by '.' */
static int imb_exr_split_token(const char *str, const char *end, const char **token)
{
int64_t maxlen = end - str;
ptrdiff_t maxlen = end - str;
int len = 0;
while (len < maxlen && *(end - len - 1) != '.') {
len++;