Skip to content

Commit

Permalink
Alternative solution using union
Browse files Browse the repository at this point in the history
  • Loading branch information
Zlodiy committed Jun 5, 2014
1 parent 5cd3bb8 commit eb11934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyc_numeric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ bool PycComplex::isEqual(PycRef<PycObject> obj) const
/* PycCFloat */
void PycCFloat::load(PycData* stream, PycModule*)
{
m_value = (double)stream->get64();
m_value_i64 = stream->get64();
}


/* PycCComplex */
void PycCComplex::load(PycData* stream, PycModule* mod)
{
PycCFloat::load(stream, mod);
m_imag = (double)stream->get64();
m_imag_i64 = stream->get64();
}

0 comments on commit eb11934

Please sign in to comment.