Mercurial > ec-dotfiles
comparison bin/cek.rb @ 313:72c299437fde
Converting from integer, not string.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 04 Mar 2012 12:20:33 +0000 |
parents | 94ee419ad047 |
children | 324c5842af87 |
comparison
equal
deleted
inserted
replaced
309:592605e4d3bb | 313:72c299437fde |
---|---|
8 currentbyte = 0 | 8 currentbyte = 0 |
9 while (line = file.read(block)) do | 9 while (line = file.read(block)) do |
10 crc = Zlib.crc32(line,crc) | 10 crc = Zlib.crc32(line,crc) |
11 end | 11 end |
12 file.close | 12 file.close |
13 printf("%s %08X\n", filename, crc.to_s) | 13 printf("%s %08X\n", filename, crc.to_i) |
14 end | 14 end |