util.sha1: Truncate to a single return result when returning the binary form of the hash

Wed, 25 Aug 2010 13:19:53 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 25 Aug 2010 13:19:53 +0100
changeset 111
75c73ac9d5a6
parent 110
3fca7dd127df
child 112
4f8429727316

util.sha1: Truncate to a single return result when returning the binary form of the hash

util/sha1.lua file | annotate | diff | comparison | revisions
--- a/util/sha1.lua	Tue Aug 24 11:16:46 2010 +0100
+++ b/util/sha1.lua	Wed Aug 25 13:19:53 2010 +0100
@@ -132,9 +132,9 @@
 	if hexres then
 		return  hex;
 	else
-		return hex:gsub("..", function (byte)
+		return (hex:gsub("..", function (byte)
 			return string.char(tonumber(byte, 16));
-		end);
+		end));
 	end
 end
 

mercurial