Skip to content

Commit

Permalink
Missed the cutoff for visual studio 10 used for Python 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Aug 1, 2018
1 parent 1037b40 commit fba4985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions persistent/_timestamp.c
Expand Up @@ -204,9 +204,9 @@ TimeStamp_sec(TimeStamp *self)
sec = SCONV * (double)v;
/* always round to 6 places for consistency; that's going to
happen after a trip through raw() */
#if defined(_MSC_VER) && _MSC_VER <= 1500
#if defined(_MSC_VER) && _MSC_VER <= 1600
/* the windows compilers for Python 2.7 and 3.4 don't support C99
round() */
round(). 1600 is visual studio 10, aka 2010, used for 3.4 */
sec = floor((sec * 1000000.0) + 0.5) / 1000000.0;
#else
sec = round(sec * 1000000.0) / 1000000.0;
Expand Down

0 comments on commit fba4985

Please sign in to comment.