<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 
-Copyright (c) 2009, John Mettraux, jmettraux@gmail.com
+Copyright (c) 2009, John Mettraux, Alain Hoang.
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the &quot;Software&quot;), to deal</diff>
      <filename>LICENSE.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 #--
-# Copyright (c) 2009, John Mettraux, jmettraux@gmail.com
+# Copyright (c) 2009, John Mettraux, Alain Hoang.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the &quot;Software&quot;), to deal</diff>
      <filename>lib/rufus/lua.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 #--
-# Copyright (c) 2009, John Mettraux, jmettraux@gmail.com
+# Copyright (c) 2009, John Mettraux, Alain Hoang.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the &quot;Software&quot;), to deal</diff>
      <filename>lib/rufus/lua/lib.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 #--
-# Copyright (c) 2009, John Mettraux, jmettraux@gmail.com
+# Copyright (c) 2009, John Mettraux, Alain Hoang.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the &quot;Software&quot;), to deal</diff>
      <filename>lib/rufus/lua/objects.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 #--
-# Copyright (c) 2009, John Mettraux, jmettraux@gmail.com
+# Copyright (c) 2009, John Mettraux, Alain Hoang.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the &quot;Software&quot;), to deal
@@ -190,6 +190,11 @@ module Rufus::Lua
 
       new_top = stack_top - 1
       new_top = 0 if new_top &lt; 0
+        #
+        # there are no safeguard in Lua, setting top to -2 work well
+        # when the stack is crowed, but it has bad side effects when the
+        # stack is empty... Now safeguarding by ourselves.
+
       Lib.lua_settop(@pointer, new_top)
     end
 </diff>
      <filename>lib/rufus/lua/state.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 #--
-# Copyright (c) 2009, John Mettraux, jmettraux@gmail.com
+# Copyright (c) 2009, John Mettraux, Alain Hoang.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the &quot;Software&quot;), to deal</diff>
      <filename>lib/rufus/lua/utils.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ $gemspec = Gem::Specification.new do |s|
 
   s.name = 'rufus-lua'
   s.version = '0.1.1'
-  s.authors = [ 'John Mettraux', ]
+  s.authors = [ 'John Mettraux', 'Alain Hoang' ]
   s.email = 'jmettraux@gmail.com'
   s.homepage = 'http://rufus.rubyforge.org/'
   s.platform = Gem::Platform::RUBY</diff>
      <filename>rufus-lua.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b5e993e90557cf353369583ddada76840138085e</id>
    </parent>
  </parents>
  <author>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </author>
  <url>http://github.com/jmettraux/rufus-lua/commit/4d1a2835bcfb4150afa7cebedf260abe57e606ee</url>
  <id>4d1a2835bcfb4150afa7cebedf260abe57e606ee</id>
  <committed-date>2009-03-16T16:53:00-07:00</committed-date>
  <authored-date>2009-03-16T16:53:00-07:00</authored-date>
  <message>Alain in the license and a piece of comment about lua_settop()</message>
  <tree>08de8e1701e8172d3b3f54b3d00c1cde4c60e2dc</tree>
  <committer>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </committer>
</commit>
