Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1c95d94

Browse filesBrowse files
authored
Merge pull request matplotlib#7791 from AdamWill/agg-quad-inttype
Use reliable int type for mesh size in draw_quad_mesh (matplotlib#7788)
2 parents e49947a + 05eb019 commit 1c95d94
Copy full SHA for 1c95d94

File tree

Expand file treeCollapse file tree

2 files changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-6
lines changed

‎src/_backend_agg.h

Copy file name to clipboardExpand all lines: src/_backend_agg.h
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ class RendererAgg
182182
template <class CoordinateArray, class OffsetArray, class ColorArray>
183183
void draw_quad_mesh(GCAgg &gc,
184184
agg::trans_affine &master_transform,
185-
size_t mesh_width,
186-
size_t mesh_height,
185+
unsigned int mesh_width,
186+
unsigned int mesh_height,
187187
CoordinateArray &coordinates,
188188
OffsetArray &offsets,
189189
agg::trans_affine &offset_trans,
@@ -1148,8 +1148,8 @@ class QuadMeshGenerator
11481148
template <class CoordinateArray, class OffsetArray, class ColorArray>
11491149
inline void RendererAgg::draw_quad_mesh(GCAgg &gc,
11501150
agg::trans_affine &master_transform,
1151-
size_t mesh_width,
1152-
size_t mesh_height,
1151+
unsigned int mesh_width,
1152+
unsigned int mesh_height,
11531153
CoordinateArray &coordinates,
11541154
OffsetArray &offsets,
11551155
agg::trans_affine &offset_trans,

‎src/_backend_agg_wrapper.cpp

Copy file name to clipboardExpand all lines: src/_backend_agg_wrapper.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ static PyObject *PyRendererAgg_draw_quad_mesh(PyRendererAgg *self, PyObject *arg
390390
{
391391
GCAgg gc;
392392
agg::trans_affine master_transform;
393-
size_t mesh_width;
394-
size_t mesh_height;
393+
unsigned int mesh_width;
394+
unsigned int mesh_height;
395395
numpy::array_view<const double, 3> coordinates;
396396
numpy::array_view<const double, 2> offsets;
397397
agg::trans_affine offset_trans;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.