[hackers] [scc] Fix error in constconv() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Tue, 18 Aug 2015 10:02:55 +0200 (CEST)

commit d2dae10b4e8f2bb930d271a335b3ff16df4c6b75
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Aug 17 10:32:58 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Aug 17 10:32:58 2015 +0200

    Fix error in constconv()
    
    It was using sym instead of osym in the case of float conversions.

diff --git a/cc1/expr.c b/cc1/expr.c
index f102a0c..51031d4 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -364,7 +364,7 @@ constconv(Node *np, Type *newtp)
                 }
                 break;
         case FLOAT:
- aux.u.f = (oldtp->sign) ? sym->u.i : sym->u.u;
+ aux.u.f = (oldtp->sign) ? osym->u.i : osym->u.u;
                 break;
         default:
                 return NULL;
Received on Tue Aug 18 2015 - 10:02:55 CEST

This archive was generated by hypermail 2.3.0 : Tue Aug 18 2015 - 10:12:12 CEST