delorie.com/archives/browse.cgi | search |
From: | Leath Muller <leathm AT gbrmpa DOT gov DOT au> |
Message-Id: | <199608140425.OAA01240@gbrmpa.gov.au> |
Subject: | bug with gcc??? |
To: | djgpp AT delorie DOT com |
Date: | Wed, 14 Aug 1996 14:25:48 +1000 (EST) |
I finally got my code to work, and I have to admit I think it's peculiar as to why... The origal code was something like: temp = head_of_list; while (temp->next != NULL) temp = temp->next; This died a horrible death, and yet when I changed the code to the following: temp = head_of_list; done = FALSE; while (!done) { if (temp->next == NULL) done = TRUE; else temp = temp->next; } It works fine... Is this a bug with gcc??? Or what??? :| Leathal.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |