Re: Modifying element of GArray
- From: Vladimir Djokic <vladeck sezampro yu>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Modifying element of GArray
- Date: 03 Feb 2003 01:43:44 +0100
It looks like we were wrong:
KGrade *ptr_grade;
ptr_grade = g_array_index (ary_grades, KGrade, grade_index);
on Debian2.2r6, GCC 2.95.3, GLib 2.0.7:
kstudent.c:492: incompatible types in assignment
but,
ptr_grade = &g_array_index (ary_grades, KGrade, grade_index);
is OK.
Now, would then this be OK?:
ptr_grade = g_array_index (ary_grades, KGrade *, grade_index);
Bye,
Vladimir.
--
"This is it... This is where I belong..."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]