Created
June 9, 2012 05:54
-
-
Save estk/2899678 to your computer and use it in GitHub Desktop.
Portability problem with pa02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128c128 | |
< for (int i=0; edges[i] != nilEdge; i++) { | |
--- | |
> for (int i=0; edges[i] != 0; i++) { | |
138c138 | |
< edge_ref *edges = malloc (maxN * sizeof (struct edge)); | |
--- | |
> edge_ref *edges = calloc (maxN, sizeof (struct edge)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment