Skip to content

Commit

Permalink
Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
klbostee committed Aug 21, 2009
1 parent d4b701a commit ff11e15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions fastb.c
Expand Up @@ -75,8 +75,10 @@ _fastb_read_long(FILE *stream) {
(((long long) c[1] & 255) << 48) + (((long long) c[1] & 255) << 48) +
(((long long) c[2] & 255) << 40) + (((long long) c[2] & 255) << 40) +
(((long long) c[3] & 255) << 32) + (((long long) c[3] & 255) << 32) +
((c[4] & 255) << 24) + ((c[5] & 255) << 16) + (((long long) c[4] & 255) << 24) +
((c[6] & 255) << 8) + ((c[7] & 255) ); (((long long) c[5] & 255) << 16) +
(((long long) c[6] & 255) << 8) +
(((long long) c[7] & 255) );
} }


static inline int static inline int
Expand Down
4 changes: 2 additions & 2 deletions tests/testio.py
Expand Up @@ -19,7 +19,7 @@ def testio(self):
file.close() file.close()
file = open("test.bin", "rb") file = open("test.bin", "rb")
input = typedbytes.Input(file) input = typedbytes.Input(file)
for (index, record) in enumerate(input): for (index, record) in enumerate(input.reads()):
self.assertEqual(objects[index], record) self.assertEqual(objects[index], record)
file.close() file.close()
os.remove("test.bin") os.remove("test.bin")
Expand All @@ -32,7 +32,7 @@ def testpairio(self):
file.close() file.close()
file = open("test.bin", "rb") file = open("test.bin", "rb")
input = typedbytes.PairedInput(file) input = typedbytes.PairedInput(file)
for index, record in input: for index, record in input.reads():
self.assertEqual(objects[index], record) self.assertEqual(objects[index], record)
file.close() file.close()
os.remove("test.bin") os.remove("test.bin")
Expand Down

0 comments on commit ff11e15

Please sign in to comment.