diff options
author | Underground78 <underground78@users.sourceforge.net> | 2011-08-11 00:08:23 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2011-08-11 00:08:23 +0400 |
commit | 8caf4b5aaf91b5ffabc65d2ac2f000d8603ba233 (patch) | |
tree | 9abcc8e8d78463d09ff1b69ec0443c71361a55e1 /src/Subtitles/libssf/Rasterizer.cpp | |
parent | 3f21c3923cc0793b068cf74094225dabbd5c7dbb (diff) |
Fix ~130 C4018 warnings (signed/unsigned mismatch).
Patch partially by XhmikosR.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3637 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/Subtitles/libssf/Rasterizer.cpp')
-rw-r--r-- | src/Subtitles/libssf/Rasterizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Subtitles/libssf/Rasterizer.cpp b/src/Subtitles/libssf/Rasterizer.cpp index 19497c732..c7c9c3382 100644 --- a/src/Subtitles/libssf/Rasterizer.cpp +++ b/src/Subtitles/libssf/Rasterizer.cpp @@ -644,7 +644,7 @@ namespace ssf int y = (ysub + mOffsetY + (1<<FONT_AA)/2) >> FONT_AA;
int w = mOverlayWidth;
int h = mOverlayHeight;
- int xo = 0, yo = 0;
+ unsigned int xo = 0, yo = 0;
if(x < r.left) {
xo = r.left - x;
@@ -691,7 +691,7 @@ namespace ssf const DWORD* sw = switchpts;
if(fSSE2)
- for(int wt=0; wt<w; ++wt) {
+ for(unsigned int wt=0; wt<(unsigned int)w; ++wt) {
if(wt+xo >= sw[1]) {
while(wt+xo >= sw[1]) {
sw += 2;
@@ -701,7 +701,7 @@ namespace ssf pixmix_sse2(&dst[wt], color, src[wt*4]);
}
else
- for(int wt=0; wt<w; ++wt) {
+ for(unsigned int wt=0; wt<(unsigned int)w; ++wt) {
if(wt+xo >= sw[1]) {
while(wt+xo >= sw[1]) {
sw += 2;
|