Skip to content

Commit

Permalink
real/imag(val) replaced by real()/imag()=val
Browse files Browse the repository at this point in the history
  • Loading branch information
lambday committed Jun 3, 2013
1 parent 2e6b11f commit badadc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/shogun/io/SerializableAsciiReader00.cpp
Expand Up @@ -87,8 +87,8 @@ SerializableAsciiReader00::read_scalar_wrapped(
float64_t c_real, c_imag;
if (fscanf(m_file->m_fstream, "(%lg,%lg)", &c_real, &c_imag)
!= 2) return false;
((complex64_t*) param)->real(c_real);
((complex64_t*) param)->imag(c_imag);
((complex64_t*) param)->real()=c_real;
((complex64_t*) param)->imag()=c_imag;
break;
case PT_SGOBJECT:
SG_ERROR("read_scalar_wrapped(): Implementation error during"
Expand Down
4 changes: 2 additions & 2 deletions src/shogun/io/SerializableXmlReader00.cpp
Expand Up @@ -95,8 +95,8 @@ SerializableXmlReader00::read_scalar_wrapped(
float64_t c_real, c_imag;
if (sscanf(buf, "(%lg,%lg)", &c_real, &c_imag) != 2)
result = false;
((complex64_t*) param)->real(c_real);
((complex64_t*) param)->imag(c_imag);
((complex64_t*) param)->real()=c_real;
((complex64_t*) param)->imag()=c_imag;
break;
case PT_SGOBJECT:
SG_ERROR("read_scalar_wrapped(): Implementation error during"
Expand Down

0 comments on commit badadc2

Please sign in to comment.