|
From: Andy G. <and...@gm...> - 2017-06-08 17:11:56
|
As of today, http://valgrind.org/docs/manual/cg-manual.html includes the following example: enum E { A, B, C }; enum E e; enum E table[] = { 1, 2, 3 }; int i; ... i += table[e]; I'm pretty sure the third line should be written: int table[] = { 1, 2, 3 }; -- Andy Goth | <andrew.m.goth/at/gmail/dot/com> |
|
From: Philippe W. <phi...@sk...> - 2017-06-09 19:28:29
|
Thanks, fixed as revision 16444 On Thu, 2017-06-08 at 12:11 -0500, Andy Goth wrote: > As of today, http://valgrind.org/docs/manual/cg-manual.html includes > the following example: > > enum E { A, B, C }; > enum E e; > enum E table[] = { 1, 2, 3 }; > int i; > ... > i += table[e]; > > I'm pretty sure the third line should be written: > > int table[] = { 1, 2, 3 }; > > -- > Andy Goth | <andrew.m.goth/at/gmail/dot/com> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ Valgrind-users mailing list Val...@li... https://lists.sourceforge.net/lists/listinfo/valgrind-users |