Skip to content

Commit 44d9488

Browse files
committed
Replaced boolean true with 1 in several scripts.
1 parent dec585d commit 44d9488

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

demo/core/S256SUM.LUA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function sha256_file(file)
3737
return p
3838
end
3939
local H, l = {0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19}, 0
40-
while true do
40+
while 1 do
4141
local c = file:read(64)
4242
if not c then break end
4343
l = l + #c

demo/xtra/DOSFREN.LUA

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ for j = 1, #arg do
6464
else
6565
local s = Shebang(i)
6666
if s then o:write(s) end
67-
while true do
67+
while 1 do
6868
local l = i:read("*l")
6969
if l then
7070
o:write(StripCarriage(l) .. CRLF)
@@ -83,7 +83,7 @@ for j = 1, #arg do
8383
i = io.open(t, "rb")
8484
o = io.open(arg[j], "wb")
8585
if i and o then
86-
while true do
86+
while 1 do
8787
local d = i:read(1024)
8888
if not d then
8989
break

demo/xtra/MD5SUM.LUA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function md5_file(file)
6060
end
6161
local A, B, C, D, l = 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0
6262

63-
while true do
63+
while 1 do
6464
local c = file:read(64)
6565
if not c then break end
6666
l = l + #c

demo/xtra/PE95TIME.LUA

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env lua
1+
#!/usr/bin/env lua
22

33
I,X,V,H="<I4",0x80000000,809222400,[[This script edits timestamps in a PE formatted EXE to the Windows 95 release date.
44
This allows repeatable builds to be verified by checksum tools. Backup the EXE before using this tool on it.]]
@@ -12,7 +12,7 @@ function O()
1212
if m~=267 then error("!10")end S(h+s)
1313
for _=1,n do local u,o=C(),F:read(8):gsub("\0.*","")C(4)J=R(4)C(4)K=R(4)S(u+40)if o==".rsrc"then return end end error("!rsrc")end
1414
function B(p,s)
15-
S((p-J)+K)local d,t,k=F:read(s),("VS_VERSION_INFO"):gsub(".","\0%1").."\0\0"k=d:find(t,1,true)
15+
S((p-J)+K)local d,t,k=F:read(s),("VS_VERSION_INFO"):gsub(".","\0%1").."\0\0"k=d:find(t,1,1)
1616
if k then k=k+#t+((4-((k+#t)%4))%4)+44 d,t=C()+(k-s)W(d,0)W(d+4,V)end end
1717
function A(o,l,v)
1818
local d,n,i,t,e=K+o+4 W(d,V)C(4)n,i=R(2),R(2)t,e=n+i,d+12

0 commit comments

Comments
 (0)