From eec86941f2ce35e4826abf218c5ad6f35051310b Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 15 Sep 2009 22:16:55 +0000 Subject: Add link to gcc bug report, in the comment for the gcc aimed workaround for AMD64. svn-id: r44112 --- engines/cine/pal.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines/cine') diff --git a/engines/cine/pal.cpp b/engines/cine/pal.cpp index 60c58ac27c..ea8f6fbaab 100644 --- a/engines/cine/pal.cpp +++ b/engines/cine/pal.cpp @@ -223,8 +223,11 @@ Palette &Palette::saturatedAddColor(Palette& output, byte firstIndex, byte lastI // even though the struct is only 3 bytes, resulting in an invalid read, when accessing indices // 14 and 15 of 16 color palettes. // - // To work around this issue, we added an temporary variable, which will have padding so + // To work around this issue, we added an temporary variable, which will have padding, so // the 8 byte read (which is done when passing src) is assured to be in a valid memory area. + // + // For more information about this gcc specific problem, you can read up on the following bug + // report: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36043 const Color src = _colors[i]; output._colors[i] = saturatedAddColor(src, r, g, b); } -- cgit v1.2.3