Skip to content

Commit

Permalink
Convert Python3 float to int
Browse files Browse the repository at this point in the history
  • Loading branch information
yakovkeselman committed Feb 5, 2017
1 parent 91f002a commit acc5eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wavebender/wave.py
Expand Up @@ -469,7 +469,7 @@ def _ensure_header_written(self, datasize):
def _write_header(self, initlength):
self._file.write(b'RIFF')
if not self._nframes:
self._nframes = initlength / (self._nchannels * self._sampwidth)
self._nframes = int(initlength / (self._nchannels * self._sampwidth))
self._datalength = self._nframes * self._nchannels * self._sampwidth
try:
self._form_length_pos = self._file.tell()
Expand Down

0 comments on commit acc5eba

Please sign in to comment.