Skip to content

Commit

Permalink
- use MMC_IS_INTEGER instead of doing bitwise and directly
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24560 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Feb 13, 2015
1 parent a4bd9d9 commit 34bce09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/c/meta/meta_modelica.c
Expand Up @@ -542,7 +542,7 @@ void printTypeOfAny(void* any) /* for debugging */
unsigned int ctor;
void *data;

if ((0 == ((mmc_sint_t)any & 1))) {
if (MMC_IS_INTEGER(any)) {
fprintf(stderr, "Integer");
return;
}
Expand Down Expand Up @@ -643,7 +643,7 @@ inline static int getTypeOfAnyWork(void* any, int ix) /* for debugging */
return ix;
}

if ((0 == ((mmc_sint_t)any & 1))) {
if (MMC_IS_INTEGER(any)) {
checkAnyStringBufSize(ix,8);
ix += sprintf(anyStringBuf+ix, "%s", "Integer");
return ix;
Expand Down

0 comments on commit 34bce09

Please sign in to comment.