File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ namespace agg
62
62
m_stride = stride;
63
63
if (stride < 0 )
64
64
{
65
- m_start = m_buf - int (height - 1 ) * stride;
65
+ m_start = m_buf - (AGG_INT64) (height - 1 ) * stride;
66
66
}
67
67
}
68
68
@@ -80,10 +80,10 @@ namespace agg
80
80
// --------------------------------------------------------------------
81
81
AGG_INLINE T* row_ptr (int , int y, unsigned )
82
82
{
83
- return m_start + y * m_stride;
83
+ return m_start + y * (AGG_INT64) m_stride;
84
84
}
85
- AGG_INLINE T* row_ptr (int y) { return m_start + y * m_stride; }
86
- AGG_INLINE const T* row_ptr (int y) const { return m_start + y * m_stride; }
85
+ AGG_INLINE T* row_ptr (int y) { return m_start + y * (AGG_INT64) m_stride; }
86
+ AGG_INLINE const T* row_ptr (int y) const { return m_start + y * (AGG_INT64) m_stride; }
87
87
AGG_INLINE row_data row (int y) const
88
88
{
89
89
return row_data (0 , m_width-1 , row_ptr (y));
@@ -181,7 +181,7 @@ namespace agg
181
181
182
182
if (stride < 0 )
183
183
{
184
- row_ptr = m_buf - int (height - 1 ) * stride;
184
+ row_ptr = m_buf - (AGG_INT64) (height - 1 ) * stride;
185
185
}
186
186
187
187
T** rows = &m_rows[0 ];
You can’t perform that action at this time.
0 commit comments