From 4947c95bf41fc4769c118242f834eb9cf0673b39 Mon Sep 17 00:00:00 2001 From: moculus Date: Thu, 10 Apr 2008 22:22:31 +0000 Subject: [PATCH] blarg --HG-- branch : pmacs2 --- buffer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buffer.py b/buffer.py index fd2a640..c9e4e6f 100644 --- a/buffer.py +++ b/buffer.py @@ -527,7 +527,7 @@ class Binary32Buffer(FileBuffer): FileBuffer.__init__(self, path, nl, name) def cursorx_to_datax(self, cy, cx): bytespace = 2 + self.bytepad - groupspace = bytespace * self.groupsize - 1 + self.grouppad + groupspace = bytespace * self.groupsize - self.bytepad + self.grouppad groupmod = (cx + self.grouppad) % groupspace if groupmod < self.grouppad: @@ -542,7 +542,7 @@ class Binary32Buffer(FileBuffer): return None bytediv = ((cx + self.bytepad) % groupspace) // bytespace - ix = self.groupsize * groupdiv + bytediv + ix = self.groupsize * groupdiv + bytediv if ix < len(self.rawdata[cy]): return ix else: