acme: pass pointer to int type to avoid pointer to int cast warning
This commit is contained in:
parent
34b6997933
commit
209a6b4b55
1 changed files with 2 additions and 4 deletions
|
@ -1120,9 +1120,7 @@ indentval(Rune *s, int n, int type)
|
|||
static void
|
||||
fixindent(Window *w, void *v)
|
||||
{
|
||||
int t;
|
||||
|
||||
t = (int)v;
|
||||
int t = *(int*)v;
|
||||
w->indent[t] = globalindent[t];
|
||||
}
|
||||
|
||||
|
@ -1146,7 +1144,7 @@ indent(Text *et, Text*, Text *argt, int type, int, Rune *arg, int narg)
|
|||
ival = indentval(arg, narg-na, type);
|
||||
}
|
||||
if(ival == IGlobal)
|
||||
allwindows(fixindent, (void*)type);
|
||||
allwindows(fixindent, &type);
|
||||
else if(w != nil && ival >= 0)
|
||||
w->indent[type] = ival;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue