mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
meta-texture: Fix nonsensical <= on pointers
Comparing the pointed-to value is clearly what was meant. Found by Coverity. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit f676352210fad856ae85962733e488bc1a832411)
This commit is contained in:
parent
78bea226d4
commit
9fb0cbd45d
@ -337,7 +337,7 @@ foreach_clamped_region (CoglMetaTexture *meta_texture,
|
||||
clamp_s_cb,
|
||||
&clamp_data);
|
||||
/* Have we handled everything? */
|
||||
if (tx_2 <= 0)
|
||||
if (*tx_2 <= 0)
|
||||
return TRUE;
|
||||
|
||||
/* clamp tx_1 since we've handled everything with x < 0 */
|
||||
@ -396,7 +396,7 @@ foreach_clamped_region (CoglMetaTexture *meta_texture,
|
||||
clamp_t_cb,
|
||||
&clamp_data);
|
||||
/* Have we handled everything? */
|
||||
if (tx_2 <= 0)
|
||||
if (*tx_2 <= 0)
|
||||
return TRUE;
|
||||
|
||||
/* clamp ty_1 since we've handled everything with y < 0 */
|
||||
|
Loading…
Reference in New Issue
Block a user