Skip to content

Instantly share code, notes, and snippets.

@estk
Created June 9, 2012 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estk/2899678 to your computer and use it in GitHub Desktop.
Save estk/2899678 to your computer and use it in GitHub Desktop.
Portability problem with pa02
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