summaryrefslogtreecommitdiff
path: root/src/nsselect.m
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-02-02 15:18:12 +0800
committerPo Lu <luangruo@yahoo.com>2022-02-02 15:19:52 +0800
commite7047b4aba0fa5f3a511cb0688158400f02b1485 (patch)
treeca6013c11073b4d48501f0c910f28ed96383b3a3 /src/nsselect.m
parente3e0deb86d2d1b94099a93284a96843e1a654503 (diff)
downloademacs-e7047b4aba0fa5f3a511cb0688158400f02b1485.tar.gz
* src/nsselect.m (ns_get_foreign_selection): Fix GCC warning.
Diffstat (limited to 'src/nsselect.m')
-rw-r--r--src/nsselect.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsselect.m b/src/nsselect.m
index 13ca9b9c442..a7ef9df0e0e 100644
--- a/src/nsselect.m
+++ b/src/nsselect.m
@@ -250,7 +250,7 @@ ns_get_foreign_selection (Lisp_Object symbol, Lisp_Object target)
NSString *type;
NSEnumerator *e = [[pb types] objectEnumerator];
- while (type = [e nextObject])
+ while ((type = [e nextObject]))
{
NSString *val = [typeLookup valueForKey:type];
if (val && ! [types containsObject:val])