Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.154
 
1.155
 
MAIN:ragge:20060629054332
 
pftn.c
_>18261826                         else
 18271827                                 werror("no prototype for function pointer");
 18281828                 }
<> 1829+                /* floats must be cast to double */
  1830+                if (a == NULL)
  1831+                        goto build;
  1832+                for (w = a; w->n_op == CM; w = w->n_left) {
  1833+                        if (w->n_right->n_type != FLOAT)
  1834+                                continue;
  1835+                        w->n_right = argcast(w->n_right, DOUBLE,
  1836+                            NULL, MKSUE(DOUBLE));
  1837+                }
  1838+                if (a->n_type == FLOAT) {
  1839+                        MKTY(a, DOUBLE, 0, 0);
  1840+                }
18291841                 goto build;
 18301842         }
 18311843         if (al->type == VOID) {
     
 !
18581870          */
 18591871         argidx = 1;
 18601872         while (al->type != TNULL) {
<>1861 -                if (al->type == TELLIPSIS)
  1873+                if (al->type == TELLIPSIS) {
  1874+                        /* convert the rest of float to double */
  1875+                        for (; apole; apole = apole->next) {
  1876+                                if (apole->node->n_type != FLOAT)
  1877+                                        continue;
  1878+                                MKTY(apole->node, DOUBLE, 0, 0);
  1879+                        }
18621880                         goto build;
<> 1881+                }
<_18631882                 if (apole == NULL) {
 18641883                         uerror("too few arguments to function");
 18651884                         goto build;
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-10-31 05:56 +0100