diff options
author | Brian Paul <brianp@vmware.com> | 2013-10-29 14:11:01 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2013-10-31 08:21:58 -0600 |
commit | 717621acff73784adec35df81470a7adcb2e7ff0 (patch) | |
tree | c1c23953376dec027663b4bb216e23d6192fe610 /src/mesa/main/performance_monitor.c | |
parent | 010f8762e8b80fac43e18a9feaad7a37e8097be6 (diff) | |
download | external_mesa3d-717621acff73784adec35df81470a7adcb2e7ff0.zip external_mesa3d-717621acff73784adec35df81470a7adcb2e7ff0.tar.gz external_mesa3d-717621acff73784adec35df81470a7adcb2e7ff0.tar.bz2 |
mesa: fix some MSVC signed/unsigned compiler warnings
Diffstat (limited to 'src/mesa/main/performance_monitor.c')
-rw-r--r-- | src/mesa/main/performance_monitor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/performance_monitor.c b/src/mesa/main/performance_monitor.c index 8dfa826..17cae51 100644 --- a/src/mesa/main/performance_monitor.c +++ b/src/mesa/main/performance_monitor.c @@ -127,7 +127,7 @@ _mesa_GetPerfMonitorGroupsAMD(GLint *numGroups, GLsizei groupsSize, if (groupsSize > 0 && groups != NULL) { unsigned i; - unsigned n = MIN2(groupsSize, ctx->PerfMonitor.NumGroups); + unsigned n = MIN2((GLuint) groupsSize, ctx->PerfMonitor.NumGroups); /* We just use the index in the Groups array as the ID. */ for (i = 0; i < n; i++) @@ -156,7 +156,7 @@ _mesa_GetPerfMonitorCountersAMD(GLuint group, GLint *numCounters, if (counters != NULL) { unsigned i; - unsigned n = MIN2(group_obj->NumCounters, countersSize); + unsigned n = MIN2(group_obj->NumCounters, (GLuint) countersSize); for (i = 0; i < n; i++) { /* We just use the index in the Counters array as the ID. */ counters[i] = i; @@ -379,7 +379,7 @@ _mesa_SelectPerfMonitorCountersAMD(GLuint monitor, GLboolean enable, GLuint *counterList) { GET_CURRENT_CONTEXT(ctx); - unsigned i; + int i; struct gl_perf_monitor_object *m; const struct gl_perf_monitor_group *group_obj; |