Download:
child 42:a097c60c9c5a
parent 40:ad0bca5aeecc
41:de1feec4a126
Anton Shestakov <av6@dwimlabs.net>, Mon, 24 Oct 2016 14:07:22 +0800
hglib: transform input into a string (for writing)

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
hglib.lua file | annotate | diff | comparison | revisions
--- a/hglib.lua Mon Oct 24 14:05:51 2016 +0800
+++ b/hglib.lua Mon Oct 24 14:07:22 2016 +0800
@@ -157,7 +157,7 @@
local o = ''
local e = ''
local d = ''
- input = input or ''
+ input = tostring(input or '')
local function write_input(length)
write_block(self.wh, input:sub(1, length))
self.wh:flush()