Diff

util/sha1.lua @ 111:75c73ac9d5a6

util.sha1: Truncate to a single return result when returning the binary form of the hash
author Matthew Wild <mwild1@gmail.com>
date Wed, 25 Aug 2010 13:19:53 +0100
parent 105:0f2446a9f65f
child 486:6416ea3fff86
line wrap: on
line diff
--- 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