Fix misleading indentation warning.

Submitted by Guillermo Rodriguez on July 4, 2017, 10:21 a.m.

Details

Message ID 1499163662-13505-1-git-send-email-guillerodriguez.dev@gmail.com
State New
Series "Fix misleading indentation warning."
Headers show

Commit Message

Guillermo Rodriguez July 4, 2017, 10:21 a.m.
Spotted by David Kastrup <dak@gnu.org>.

---
 util/cairo-script/cairo-script-operators.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/util/cairo-script/cairo-script-operators.c b/util/cairo-script/cairo-script-operators.c
index aa38823..e493311 100644
--- a/util/cairo-script/cairo-script-operators.c
+++ b/util/cairo-script/cairo-script-operators.c
@@ -4810,8 +4810,8 @@  _set_dash (csi_t *ctx)
 	if (_csi_likely (array->stack.len < ARRAY_LENGTH (stack_dashes))) {
 	    dashes = stack_dashes;
 	} else {
-	if (_csi_unlikely ((unsigned) array->stack.len >= INT_MAX / sizeof (double)))
-	    return _csi_error (CSI_STATUS_NO_MEMORY);
+	    if (_csi_unlikely ((unsigned) array->stack.len >= INT_MAX / sizeof (double)))
+		return _csi_error (CSI_STATUS_NO_MEMORY);
 	    dashes = _csi_alloc (ctx, sizeof (double) * array->stack.len);
 	    if (_csi_unlikely (dashes == NULL))
 		return _csi_error (CSI_STATUS_NO_MEMORY);

Comments

Bryce Harrington Aug. 21, 2017, 11:29 p.m.
Thanks, both patches landed:

To ssh://git.freedesktop.org/git/cairo
   a5ac8fe..339fe9a  master -> master


On Tue, Jul 04, 2017 at 12:21:02PM +0200, Guillermo Rodriguez wrote:
> Spotted by David Kastrup <dak@gnu.org>.
> 
> ---
>  util/cairo-script/cairo-script-operators.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/util/cairo-script/cairo-script-operators.c b/util/cairo-script/cairo-script-operators.c
> index aa38823..e493311 100644
> --- a/util/cairo-script/cairo-script-operators.c
> +++ b/util/cairo-script/cairo-script-operators.c
> @@ -4810,8 +4810,8 @@ _set_dash (csi_t *ctx)
>  	if (_csi_likely (array->stack.len < ARRAY_LENGTH (stack_dashes))) {
>  	    dashes = stack_dashes;
>  	} else {
> -	if (_csi_unlikely ((unsigned) array->stack.len >= INT_MAX / sizeof (double)))
> -	    return _csi_error (CSI_STATUS_NO_MEMORY);
> +	    if (_csi_unlikely ((unsigned) array->stack.len >= INT_MAX / sizeof (double)))
> +		return _csi_error (CSI_STATUS_NO_MEMORY);
>  	    dashes = _csi_alloc (ctx, sizeof (double) * array->stack.len);
>  	    if (_csi_unlikely (dashes == NULL))
>  		return _csi_error (CSI_STATUS_NO_MEMORY);
> -- 
> 1.9.1
> 
> -- 
> cairo mailing list
> cairo@cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo