[yt-svn] commit/yt: MatthewTurk: Switching int for offset1 and offset2 in the read_and_seek function (Boxlib,

Bitbucket commits-noreply at bitbucket.org
Wed Sep 26 10:25:41 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/6d7c8a1b1ab1/
changeset:   6d7c8a1b1ab1
branch:      yt
user:        MatthewTurk
date:        2012-09-26 19:25:34
summary:     Switching int for offset1 and offset2 in the read_and_seek function (Boxlib,
Nyx) to np.int64_t
affected #:  1 file

diff -r a16fc24a1c04fc9d88e0c238bd85b10275743097 -r 6d7c8a1b1ab123f6a8a71891fbcee2c4d1c6d1c9 yt/utilities/lib/fortran_reader.pyx
--- a/yt/utilities/lib/fortran_reader.pyx
+++ b/yt/utilities/lib/fortran_reader.pyx
@@ -53,8 +53,8 @@
 
 @cython.boundscheck(False)
 @cython.wraparound(False)
-def read_and_seek(char *filename, int offset1, int offset2,
-                  np.ndarray buffer, int bytes):
+def read_and_seek(char *filename, np.int64_t offset1,
+                  np.int64_t offset2, np.ndarray buffer, int bytes):
     cdef FILE *f = fopen(filename, "rb")
     cdef void *buf = <void *> buffer.data
     cdef char line[1024]

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list