Skip to content

Commit

Permalink
FIX: locally disabling warning C4146: unary minus operator applied to…
Browse files Browse the repository at this point in the history
… unsigned type, result still unsigned, as it blocks compilation in Visual Studio
  • Loading branch information
Oldes committed Nov 1, 2017
1 parent d90604a commit ff41a13
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/core/n-math.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ enum {SINE, COSINE, TANGENT};
return R_RET;
}

#if defined(_MSC_VER) && _MSC_VER > 1800
#pragma warning (disable : 4146)
#endif


/***********************************************************************
**
Expand Down Expand Up @@ -284,6 +288,12 @@ enum {SINE, COSINE, TANGENT};
return R_ARG1;
}

// See above for the temporary disablement and reasoning.
//
#if defined(_MSC_VER) && _MSC_VER > 1800
#pragma warning (default : 4146)
#endif


/***********************************************************************
**
Expand Down

0 comments on commit ff41a13

Please sign in to comment.