Andes Workshop
http://forum.andestech.com/

error: lvalue required as left operand of assignment
http://forum.andestech.com/viewtopic.php?f=25&t=717
Page 1 of 1

Author:  cindy [ Tue Jul 02, 2013 3:57 pm ]
Post subject:  error: lvalue required as left operand of assignment

This is a good article for your reference:
http://stackoverflow.com/questions/7718 ... assignment

Example:
#define test_ACT 0x001F6980
test_ACT &= 0xFFF3;

Errors when building:
error: lvalue required as left operand of assignment

Please revise it to
*((unsigned int*)test_ACT) &= 0xFFF3;

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/