[Vala] Incompatible operand
- From: Shawn Ferris <shawn ferris gmail com>
- To: Vala-list <Vala-list gnome org>
- Subject: [Vala] Incompatible operand
- Date: Tue, 1 Nov 2011 22:46:30 -0600
Hey All --
Is there another operand for the following, or is this a bug?
uchar[] foo = new char[100];
int len = 0;
int final_len = 0;
some_method(foo,out len);
some_method2(foo+len, out final_len);
The foo+len yields the error:
x.vala:90.25-90.52: error: Incompatible operand
However, if I replace the variable length with a hardcoded one, it's
accepted:
some_method2(foo+16, out final_len);
Thanks for the help!
Shawn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]