[binutils-gdb] wasm32: use is_whitespace()

Jan Beulich jbeulich@sourceware.org
Mon Feb 3 11:30:44 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=62489f8b5252f92f89078b2ff3eac3abab75cb49

commit 62489f8b5252f92f89078b2ff3eac3abab75cb49
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Feb 3 12:28:22 2025 +0100

    wasm32: use is_whitespace()
    
    Convert an open-coded check.

Diff:
---
 gas/config/tc-wasm32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/config/tc-wasm32.c b/gas/config/tc-wasm32.c
index 88a20805891..c9b07878179 100644
--- a/gas/config/tc-wasm32.c
+++ b/gas/config/tc-wasm32.c
@@ -229,7 +229,7 @@ md_apply_fix (fixS * fixP, valueT * valP, segT seg ATTRIBUTE_UNUSED)
 static inline char *
 skip_space (char *s)
 {
-  while (*s == ' ' || *s == '\t')
+  while (is_whitespace (*s))
     ++s;
   return s;
 }


More information about the Binutils-cvs mailing list