Errata to _Graphics Gems V_, first edition, edited by Alan Paeth (awpaeth@okanagan.bc.ca), Academic Press 1995. Code available online in ftp://princeton.edu/pub/Graphics/GraphicsGems/GemsV. compiled by Eric Haines (erich@eye.com) from author and reader contributions version 1.1 date: 3/1/96 ----- Errors in the text: The following proof changes might not appear in the book's 1st printing but are correct on the floppy disk and FTP mirror versions: p. 85, bottom (code line) now reads: ... if ((t = a - b) < 0) {a -= t; b += t; } } ^ ^ ^ ^ ('a','b' and '+','-' were transposed) p. 86, top (code): ... + 16*d)/ ... ^^ replaces the ' 4' presently there p. 323 - no cedilla in "Francois" in author's name (cp. p 405, bottom) p. 394 - Atul Narkhede's email address is now atul@yamuna.asd.sgi.com ----- The following are errors in the book's code listings (corrected in the online code at princeton.edu:pub/Graphics/GraphicsGems/GemsV). Note that some of the code listings online are different in minor and major ways from the code in the book. Serious errors (ones your compiler cannot or may not catch): ch3-6/axd.* - these files have been reworked to correctly match the macro library that they use. ch4-8/qbezier.c - line 76, change "if (k = 0)" to "if (k == 0)". ch7-5/misc.c - if you do not have the log2() function in your compiler, use: #define log2(x) (log((double)x)/log(2.0)) ----- Syntax errors (ones that are not usually harmful, or are easily caught): There are various "lint" type errors in the text's and diskette's code which have been cleaned up in the FTP distribution. The only serious changes were to the axd.c code in ch3-6, as the code was out of sync with the macros it used from ch7-7/mactbox. The corrected code is in the FTP distribution. ----- The following are typographical errors in the comments: [none so far] ----- END