Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: fix typos in comments



details:   https://anonhg.NetBSD.org/src/rev/a61dc6e2804d
branches:  trunk
changeset: 374402:a61dc6e2804d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Apr 22 09:39:14 2023 +0000

description:
lint: fix typos in comments

diffstat:

 usr.bin/xlint/lint1/tree.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 732a62ac510b -r a61dc6e2804d usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c        Fri Apr 21 23:01:59 2023 +0000
+++ b/usr.bin/xlint/lint1/tree.c        Sat Apr 22 09:39:14 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tree.c,v 1.513 2023/04/14 18:42:31 rillig Exp $        */
+/*     $NetBSD: tree.c,v 1.514 2023/04/22 09:39:14 rillig Exp $        */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID)
-__RCSID("$NetBSD: tree.c,v 1.513 2023/04/14 18:42:31 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.514 2023/04/22 09:39:14 rillig Exp $");
 #endif
 
 #include <float.h>
@@ -3420,7 +3420,7 @@ convert_integer_from_pointer(op_t op, ts
        if (tn->tn_op == CON)
                return;
        if (op != CVT)
-               return;         /* We got already an error. */
+               return;         /* We already got an error. */
        if (portable_size_in_bits(nt) >= portable_size_in_bits(PTR))
                return;
 
@@ -3643,7 +3643,7 @@ convert_constant_floating(op_t op, int a
        case DCOMPLEX:
                max = DBL_MAX;          min = -DBL_MAX;         break;
        case PTR:
-               /* Got already an error because of float --> ptr */
+               /* Already got an error because of float --> ptr */
        case LDOUBLE:
        case LCOMPLEX:
                /* LINTED 248 */
@@ -3856,7 +3856,7 @@ convert_constant_check_range(tspec_t ot,
  *
  * op          operator which requires conversion
  * arg         if op is FARG, # of argument
- * tp          type in which to convert the constant
+ * tp          type to which to convert the constant
  * nv          new constant
  * v           old constant
  */



Home | Main Index | Thread Index | Old Index