nasm.c: another readability cleanup
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 26 Feb 2009 22:36:19 +0000 (14:36 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 26 Feb 2009 22:36:19 +0000 (14:36 -0800)
Yet another change for readability

nasm.c

diff --git a/nasm.c b/nasm.c
index b2f7631..d0ab592 100644 (file)
--- a/nasm.c
+++ b/nasm.c
@@ -1530,9 +1530,8 @@ static void assemble_file(char *fname, StrList **depend_ptr)
                             if (output_ins.operands == 1 &&
                                 (output_ins.oprs[0].type & IMMEDIATE) &&
                                 output_ins.oprs[0].wrt == NO_SEG) {
-                                int isext =
-                                    output_ins.oprs[0].
-                                    opflags & OPFLAG_EXTERN;
+                                bool isext = !!(output_ins.oprs[0].opflags
+                                               & OPFLAG_EXTERN);
                                 def_label(output_ins.label,
                                           output_ins.oprs[0].segment,
                                           output_ins.oprs[0].offset, NULL,