Removed casts made superfluous by adding newstr to string.h
This commit is contained in:
parent
092c81b39c
commit
3f3a9ed279
@ -8,7 +8,7 @@ int i;
|
||||
char *buffer =" ";
|
||||
String *s;
|
||||
|
||||
s= (String *) _newstr(buffer);
|
||||
s= _newstr(buffer);
|
||||
strncpy(s->strval,&i,2);
|
||||
return(s);
|
||||
}
|
||||
@ -18,7 +18,7 @@ double d;
|
||||
char *buffer =" ";
|
||||
String *s;
|
||||
|
||||
s= (String *) _newstr(buffer);
|
||||
s= _newstr(buffer);
|
||||
strncpy(s->strval,&d,8);
|
||||
return(s);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user