changeset 33012:68820488a927

Do not pointlessly cast away a const.
author reimar
date Thu, 24 Mar 2011 20:21:27 +0000
parents e9a733c1e2a1
children aab47f5fdb9b
files libvo/fastmemcpy.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/fastmemcpy.h	Wed Mar 23 22:08:34 2011 +0000
+++ b/libvo/fastmemcpy.h	Thu Mar 24 20:21:27 2011 +0000
@@ -77,7 +77,7 @@
     if(!limit2width && dstStride == srcStride)
     {
         if (srcStride < 0) {
-                src = (uint8_t*)src + (height-1)*srcStride;
+                src = (const uint8_t*)src + (height-1)*srcStride;
                 dst = (uint8_t*)dst + (height-1)*dstStride;
                 srcStride = -srcStride;
         }
@@ -89,7 +89,7 @@
         for(i=0; i<height; i++)
         {
             fast_memcpy(dst, src, bytesPerLine);
-            src = (uint8_t*)src + srcStride;
+            src = (const uint8_t*)src + srcStride;
             dst = (uint8_t*)dst + dstStride;
         }
     }