From d645b70a351736fe6ce2da35e44dc2cadab3bc84 Mon Sep 17 00:00:00 2001 From: James Douglass Date: Fri, 21 Jun 2024 16:08:43 -0700 Subject: [PATCH] Making a few indices unsigned ints, as they should be. RE:#386 --- src/pygeoprocessing/routing/routing.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pygeoprocessing/routing/routing.pyx b/src/pygeoprocessing/routing/routing.pyx index a6885ed6..c18e3437 100644 --- a/src/pygeoprocessing/routing/routing.pyx +++ b/src/pygeoprocessing/routing/routing.pyx @@ -150,8 +150,8 @@ cdef struct DecayingValue: # Additionally, we track all of the decaying values from upstream that # influence the load on this pixel. Used during decaying flow accumulation. cdef struct WeightedFlowPixelType: - int xi # The pixel's x coordinate in pixel space - int yi # The pixel's y coordinate in pixel space + unsigned int xi # The pixel's x coordinate in pixel space + unsigned int yi # The pixel's y coordinate in pixel space int last_flow_dir # The last flow direction processed on this pixel double value # The flow accumulation value at this pixel queue[DecayingValue] decaying_values # A queue of upstream decaying values that affect the accumulation on this pixel.