diff --git a/src/simpleraytracer.cpp b/src/simpleraytracer.cpp index a84ed4ff508..3689e973585 100644 --- a/src/simpleraytracer.cpp +++ b/src/simpleraytracer.cpp @@ -41,8 +41,7 @@ SEXP getsphere( /* All error checking is done at the R level */ - int i; - size_t no_lights=lightpos.size(); + R_xlen_t no_lights=lightpos.size(); RayTracer* p_ray_tracer; Sphere* sphere; int nopixels=swidth * sheight; @@ -52,7 +51,7 @@ SEXP getsphere( p_ray_tracer = new RayTracer(); p_ray_tracer->EyePoint(Point(0,0,0)); - for (i=0; i