Skip to content

Commit

Permalink
- Fix an additional test for bootstrapping by making RML output NaN r…
Browse files Browse the repository at this point in the history
…egardless of platform

  - Note: This requires RML r213 to work, but should mean the testsuite will work on both OMDev and Linux (previously only Linux worked fully)


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9485 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jul 15, 2011
1 parent 85d6d37 commit faccd9c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions c_runtime/meta/meta_modelica_real.cpp
Expand Up @@ -49,12 +49,15 @@ extern "C" {

static const MMC_DEFSTRINGLIT(_OMC_LIT_NEG_INF,4,"-inf");
static const MMC_DEFSTRINGLIT(_OMC_LIT_POS_INF,3,"inf");
static const MMC_DEFSTRINGLIT(_OMC_LIT_NAN, 3,"NaN");
static const MMC_DEFSTRINGLIT(_OMC_LIT_NAN,3,"NaN");

realString_rettype realString(modelica_real r)
{
/* 64-bit (1+11+52) double: -d.[15 digits]E-[4 digits] = ~24 digits max.
* Add safety margin. */
/* NOTE: The RML runtime uses the same code as this function.
* If you update one, you must update the other or the testsuite might break
*
* 64-bit (1+11+52) double: -d.[15 digits]E-[4 digits] = ~24 digits max.
* Add safety margin in case some C runtime is trigger happy. */
static char buffer[32];
modelica_string res;
// fprintf(stderr, "\nrealString(%g)\n", r);
Expand Down

0 comments on commit faccd9c

Please sign in to comment.