<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Raymond Toy pushed to branch master at <a href="https://gitlab.common-lisp.net/cmucl/cmucl">cmucl / cmucl</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/82821f30c5db79bb31a024916771fc7e1b6a31b1">82821f30</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2015-08-30T13:34:52Z</i>
</div>
<pre class='commit-message'>Remove unused variable "zero".

Gets rid of compiler warning too.</pre>
</li>
<li>
<strong><a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/0e58a8f30111bc20059f4e69ddfb4ca4925833f6">0e58a8f3</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2015-08-30T13:36:10Z</i>
</div>
<pre class='commit-message'>Use enum names in switch statement and fix warning.

Instead of using random integers in the switch statement, use the
fdlibm enum values.

Also fix a compiler warning that ret might be used uninitialized.  Fix
this by adding a default case, which should never happen.</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
src/lisp/e_log10.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
src/lisp/setexception.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/compare/61adc721e2c97f930ccb8792d315a7b8a1957cd0...0e58a8f30111bc20059f4e69ddfb4ca4925833f6#diff-0'>
<strong>
src/lisp/e_log10.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/lisp/e_log10.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/lisp/e_log10.c
</span><span style="color: #aaaaaa">@@ -56,8 +56,6 @@ ivln10     =  4.34294481903251816668e-01, /* 0x3FDBCB7B, 0x1526E50E */
</span> log10_2hi  =  3.01029995663611771306e-01, /* 0x3FD34413, 0x509F6000 */
 log10_2lo  =  3.69423907715893078616e-13; /* 0x3D59FEF3, 0x11F12B36 */
 
-static double zero   =  0.0;
-
 #ifdef __STDC__
        double __ieee754_log10(double x)
 #else
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/compare/61adc721e2c97f930ccb8792d315a7b8a1957cd0...0e58a8f30111bc20059f4e69ddfb4ca4925833f6#diff-1'>
<strong>
src/lisp/setexception.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/lisp/setexception.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/lisp/setexception.c
</span><span style="color: #aaaaaa">@@ -46,7 +46,7 @@ fdlibm_setexception(double x, enum FDLIBM_EXCEPTION type)
</span>     double ret;
     
     switch (type) {
<span style="color: #000000;background-color: #ffdddd">-      case 0:
</span><span style="color: #000000;background-color: #ddffdd">+      case FDLIBM_DIVIDE_BY_ZERO:
</span>           /* Division by zero. Use the sign of x to get the correct
            *  signed infinity
            */
<span style="color: #aaaaaa">@@ -54,17 +54,17 @@ fdlibm_setexception(double x, enum FDLIBM_EXCEPTION type)
</span>           
           ret = copysign(INFINITY, x);
           break;
<span style="color: #000000;background-color: #ffdddd">-      case 1:
</span><span style="color: #000000;background-color: #ddffdd">+      case FDLIBM_UNDERFLOW:
</span>           /* Underflow. Use the sign of x to get a signed zero. */
           feraiseexcept(FE_UNDERFLOW);
           ret = copysign(0.0, x);
           break;
<span style="color: #000000;background-color: #ffdddd">-      case 2:
</span><span style="color: #000000;background-color: #ddffdd">+      case FDLIBM_OVERFLOW:
</span>           /* overflow */
           feraiseexcept(FE_OVERFLOW);
           ret = copysign(INFINITY, x);
           break;
<span style="color: #000000;background-color: #ffdddd">-      case 3:
</span><span style="color: #000000;background-color: #ddffdd">+      case FDLIBM_INVALID:
</span>       {
           /* invalid */
 
<span style="color: #aaaaaa">@@ -88,6 +88,10 @@ fdlibm_setexception(double x, enum FDLIBM_EXCEPTION type)
</span>           
           break;
       }
<span style="color: #000000;background-color: #ddffdd">+    default:
+      /* Shouldn't happen! */
+      ret = 0.0;
+      break;
</span>     }
 
     return ret;
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://gitlab.common-lisp.net/cmucl/cmucl/compare/61adc721e2c97f930ccb8792d315a7b8a1957cd0...0e58a8f30111bc20059f4e69ddfb4ca4925833f6">View it on GitLab</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":["merge_requests","issues","commit"],"url":"https://gitlab.common-lisp.net/cmucl/cmucl/compare/61adc721e2c97f930ccb8792d315a7b8a1957cd0...0e58a8f30111bc20059f4e69ddfb4ca4925833f6"}}</script>
</p>
</div>
</body>
</html>