Skip to content

Commit

Permalink
Merge pull request #112 from denizzzka/32bit_fix
Browse files Browse the repository at this point in the history
32 bit fix
  • Loading branch information
denizzzka authored May 19, 2018
2 parents 7eebc9a + bd598a4 commit 3fb8e30
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/dpq2/conv/time.d
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,8 @@ if(is(T == TimeStamp) || is(T == TimeStampUTC))
{
import core.stdc.time: time_t;

static assert(raw.sizeof == time_t.min.sizeof);
static assert(raw.sizeof == time_t.max.sizeof);

if(raw == time_t.max) return T.later; // infinity
if(raw == time_t.min) return T.earlier; // -infinity
if(raw == long.max) return T.later; // infinity
if(raw == long.min) return T.earlier; // -infinity

pg_tm tm;
fsec_t ts;
Expand Down

0 comments on commit 3fb8e30

Please sign in to comment.