[macruby-changes] [2545] MacRuby/trunk/ext/libyaml/rubyext.c
source_changes at macosforge.org
source_changes at macosforge.org
Thu Sep 10 19:07:55 PDT 2009
Revision: 2545
http://trac.macosforge.org/projects/ruby/changeset/2545
Author: lsansonetti at apple.com
Date: 2009-09-10 19:07:51 -0700 (Thu, 10 Sep 2009)
Log Message:
-----------
fixed yaml deserialization of negative numeric types
Modified Paths:
--------------
MacRuby/trunk/ext/libyaml/rubyext.c
Modified: MacRuby/trunk/ext/libyaml/rubyext.c
===================================================================
--- MacRuby/trunk/ext/libyaml/rubyext.c 2009-09-11 00:32:06 UTC (rev 2544)
+++ MacRuby/trunk/ext/libyaml/rubyext.c 2009-09-11 02:07:51 UTC (rev 2545)
@@ -344,6 +344,9 @@
static inline bool
is_numeric(const char *str, bool *has_point)
{
+ if (*str == '-') {
+ str++;
+ }
char c;
bool point = false;
while ((c = *str++) != '\0') {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090910/1fc724d3/attachment.html>
More information about the macruby-changes
mailing list