1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-26 19:18:50 +00:00

* xrdb.c (x_get_resource): Cast the value being assigned to

ret_value->addr, rather than ret_value->addr itself; only GCC
	allows you to cast lvalues.
This commit is contained in:
Jim Blandy 1992-09-22 06:43:04 +00:00
parent ba410f40e9
commit 41ab0754d3

View File

@ -400,7 +400,7 @@ x_get_resource (rdb, name, class, expected_type, ret_value)
&& (type == expected_type))
{
if (type == x_rm_string)
(char *) ret_value->addr = value.addr;
ret_value->addr = (char *) value.addr;
else
bcopy (value.addr, ret_value->addr, ret_value->size);