Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:PowerPC
frei0r-plugins
frei0r-plugins-compiler-warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File frei0r-plugins-compiler-warnings.patch of Package frei0r-plugins
From 8f809085bf1ca0f3d4a7b5bade3afe2367c3e9b2 Mon Sep 17 00:00:00 2001 From: Dan Dennedy <dan@dennedy.org> Date: Thu, 29 Sep 2011 02:24:56 +0000 Subject: Fix compile warning on undefined operation. --- diff --git a/src/filter/curves/curves.c b/src/filter/curves/curves.c index 76ce144..021accc 100644 --- a/src/filter/curves/curves.c +++ b/src/filter/curves/curves.c @@ -875,9 +875,12 @@ void f0r_update(f0r_instance_t instance, double time, for(int j = 0; j < scale; j++) { if (j % cellSize > lineWidth) { //point doesn't aly on the grid int offset = ((maxYvalue - i + graphYOffset) * stride + j + graphXOffset) * 4; - dst[offset] = (dst[offset++] >> 1) + 0x7F; - dst[offset] = (dst[offset++] >> 1) + 0x7F; - dst[offset] = (dst[offset++] >> 1) + 0x7F; + dst[offset] = (dst[offset] >> 1) + 0x7F; + offset++; + dst[offset] = (dst[offset] >> 1) + 0x7F; + offset++; + dst[offset] = (dst[offset] >> 1) + 0x7F; + offset++; } } } diff --git a/src/filter/three_point_balance/three_point_balance.c b/src/filter/three_point_balance/three_point_balance.c index f847e31..c578a8c 100644 --- a/src/filter/three_point_balance/three_point_balance.c +++ b/src/filter/three_point_balance/three_point_balance.c @@ -263,15 +263,22 @@ void f0r_update(f0r_instance_t instance, double time, for(int i = 0; i < inst->height; i++) { int offset = (i * inst->width + j) * 4; if (copyPixel) { - dst[offset] = src[offset++]; - dst[offset] = src[offset++]; - dst[offset] = src[offset++]; + dst[offset] = src[offset]; + offset++; + dst[offset] = src[offset]; + offset++; + dst[offset] = src[offset]; + offset++; } else { - dst[offset] = mapRed[src[offset++]]; - dst[offset] = mapGreen[src[offset++]]; - dst[offset] = mapBlue[src[offset++]]; + dst[offset] = mapRed[src[offset]]; + offset++; + dst[offset] = mapGreen[src[offset]]; + offset++; + dst[offset] = mapBlue[src[offset]]; + offset++; } - dst[offset] = src[offset++]; // copy alpha + dst[offset] = src[offset]; // copy alpha + offset++; } } -- cgit v0.7.2-83-g9ec5
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor