summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2020-11-18 16:58:59 +0900
committerKOBAYASHI Shuji <[email protected]>2020-11-18 18:54:00 +0900
commitf50cde9924490e0ba55c4f9df72540badb2b7d38 (patch)
treec1acb85c77b70143daf53e23c6c278900195e058 /mrbgems/mruby-bin-debugger
parent3d8350f9202576a18695d877afa1e88986df513f (diff)
downloadmruby-f50cde9924490e0ba55c4f9df72540badb2b7d38.tar.gz
mruby-f50cde9924490e0ba55c4f9df72540badb2b7d38.zip
Fix integer overflow error in mrdb test
Diffstat (limited to 'mrbgems/mruby-bin-debugger')
-rw-r--r--mrbgems/mruby-bin-debugger/bintest/mrdb.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/mrbgems/mruby-bin-debugger/bintest/mrdb.rb b/mrbgems/mruby-bin-debugger/bintest/mrdb.rb
index 26f3138aa..50460669d 100644
--- a/mrbgems/mruby-bin-debugger/bintest/mrdb.rb
+++ b/mrbgems/mruby-bin-debugger/bintest/mrdb.rb
@@ -63,10 +63,7 @@ assert('mruby-bin-debugger(mrdb) command line') do
# ruby source
src = "foo = 'foo'\n"
- str = ""
- 103.times {
- str += "1234567890"
- }
+ str = ":#{'abcdefghij' * 103}"
cmd = "p a=#{str}"
# test case