Pass nodes_size as an int instead of as a *int.
Only pass as *int when the value will be modified.