From 55a998fc01f4e27fcae77319f5661fc68d382c4a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 16 Jan 2015 09:29:49 -0800 Subject: [PATCH] Fix build errors --- api/graphics2.h | 2 ++ clientscr/ss_app.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/graphics2.h b/api/graphics2.h index 7fa46ada73..1f396cebdc 100644 --- a/api/graphics2.h +++ b/api/graphics2.h @@ -18,6 +18,8 @@ #ifndef _GRAPHICS2_H_ #define _GRAPHICS2_H_ +struct BOINC_STATUS; + // Functions that must be supplied by the app // extern void app_graphics_render(int xs, int ys, double time_of_day); diff --git a/clientscr/ss_app.cpp b/clientscr/ss_app.cpp index 3fe5ef287e..13deada51c 100644 --- a/clientscr/ss_app.cpp +++ b/clientscr/ss_app.cpp @@ -432,7 +432,7 @@ void app_graphics_render(int xs, int ys, double t) { showing_project = false; project_index++; } else { - int n = cc_state.results.size(); + int n = (int)cc_state.results.size(); if (n) { job_index += MAX_JOBS_DISPLAY; job_index %= n;