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
6262 m_stride = stride;
6363 if (stride < 0 )
6464 {
65- m_start = m_buf - int (height - 1 ) * stride;
65+ m_start = m_buf - (AGG_INT64) (height - 1 ) * stride;
6666 }
6767 }
6868
@@ -80,10 +80,10 @@ namespace agg
8080 // --------------------------------------------------------------------
8181 AGG_INLINE T* row_ptr (int , int y, unsigned )
8282 {
83- return m_start + y * m_stride;
83+ return m_start + y * (AGG_INT64) m_stride;
8484 }
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; }
8787 AGG_INLINE row_data row (int y) const
8888 {
8989 return row_data (0 , m_width-1 , row_ptr (y));
@@ -181,7 +181,7 @@ namespace agg
181181
182182 if (stride < 0 )
183183 {
184- row_ptr = m_buf - int (height - 1 ) * stride;
184+ row_ptr = m_buf - (AGG_INT64) (height - 1 ) * stride;
185185 }
186186
187187 T** rows = &m_rows[0 ];
You can’t perform that action at this time.
0 commit comments