* data.c (Faset): If ARRAY is a string, check that NEWELT is a char.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 02:02:16 +0000 (19:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 02:02:16 +0000 (19:02 -0700)
commit0fed43f396ce7838bdc591cec8b01be95fb9613a
treef5ba32fcd7cce2a46f1fd1da24c45c0149552752
parent8fd02eb7d30a7e0e98cc863e0f3cb81a954fe8a9
* data.c (Faset): If ARRAY is a string, check that NEWELT is a char.

Without this fix, on a 64-bit host (aset S 0 4294967386) would
incorrectly succeed when S was a string, because 4294967386 was
truncated before it was used.
src/ChangeLog
src/data.c