--- freem/src/operator.c 2025/02/28 20:51:20 1.3 +++ freem/src/operator.c 2025/04/09 19:52:02 1.6 @@ -1,23 +1,11 @@ /* - * * - * * * - * * * - * *************** - * * * * * - * * MUMPS * - * * * * * - * *************** - * * * - * * * - * * - * - * operator.c + * $Id: operator.c,v 1.6 2025/04/09 19:52:02 snw Exp $ * operators pattern-match, divide, multiply, add, power * * - * Author: Serena Willis + * Author: Serena Willis * Copyright (C) 1998 MUG Deutschland - * Copyright (C) 2020 Coherent Logic Development LLC + * Copyright (C) 2020, 2025 Coherent Logic Development LLC * * * This file is part of FreeM. @@ -35,6 +23,16 @@ * You should have received a copy of the GNU Affero Public License * along with FreeM. If not, see . * + * $Log: operator.c,v $ + * Revision 1.6 2025/04/09 19:52:02 snw + * Eliminate as many warnings as possible while building with -Wall + * + * Revision 1.5 2025/03/09 19:50:47 snw + * Second phase of REUSE compliance and header reformat + * + * + * SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC + * SPDX-License-Identifier: AGPL-3.0-or-later **/ #include "mpsdef.h" @@ -801,8 +799,8 @@ void add (char *a, char *b) /* string mi = 1; a[0] = ZERO; } - while (a[mi] == ZERO) { - stcpy (&a[mi], &a[mi + 1]); + while (a[(int) mi] == ZERO) { + stcpy (&a[(int) mi], &a[((int) mi) + 1]); dpa--; } if (dpa < 0) @@ -830,7 +828,7 @@ void add (char *a, char *b) /* string } a[0] = MINUS; } - if (a[mi] == EOL) { + if (a[(int) mi] == EOL) { a[0] = ZERO; a[1] = EOL; }