Skip to content
Browse files

tlib#hash#CRC32B(): ruby version: return upper case hex value

  • Loading branch information...
1 parent f91efd4 commit f00d77addaa0be02971caf1c81bb6162bd05040a @tomtom committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 autoload/tlib/hash.vim
View
4 autoload/tlib/hash.vim
@@ -1,6 +1,6 @@
" @Author: Tom Link (mailto:micathom AT gmail com?subject=[vim])
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
-" @Revision: 218
+" @Revision: 219
function! tlib#hash#CRC32B(chars) "{{{3
@@ -8,7 +8,7 @@ function! tlib#hash#CRC32B(chars) "{{{3
let rv = ''
ruby << EOR
require 'zlib'
- VIM::command('let rv = "%08x"' % Zlib.crc32(VIM::evaluate("a:chars")))
+ VIM::command('let rv = "%08X"' % Zlib.crc32(VIM::evaluate("a:chars")))
EOR
" elseif has('python')
" elseif has('perl')

0 comments on commit f00d77a

Please sign in to comment.
Something went wrong with that request. Please try again.