Commit dd80f6bb authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Fix an always-true comparison

=scm_eq_p= returns an SCM, which is a pointer.  So we first have to
convert to a C-side bool.
parent 16533e06
Pipeline #181066 failed with stages
in 33 minutes and 51 seconds
......@@ -788,9 +788,9 @@ These functions convert from and to Scheme.
<xsl:value-of select="@name" />
<xsl:text> (SCM value) { if (0) { }</xsl:text>
<xsl:for-each select="member">
<xsl:text>else if (scm_eq_p (value, scm_from_utf8_symbol (&quot;</xsl:text>
<xsl:text>else if (scm_to_bool (scm_eq_p (value, scm_from_utf8_symbol (&quot;</xsl:text>
<xsl:value-of select="@nickname" />
<xsl:text>&quot;))) { return </xsl:text>
<xsl:text>&quot;)))) { return </xsl:text>
<xsl:value-of select="@c" />
<xsl:text>;} </xsl:text>
</xsl:for-each>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment