Changeset

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
parents 110:3fca7dd127df
children 112:4f8429727316
files util/sha1.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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