<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,7 @@
+00-RELEASENOTES
 *.o
 *.rdb
+*.log
 redis-cli
 redis-server
 redis-benchmark
@@ -7,3 +9,4 @@ doc-tools
 mkrelease.sh
 release
 myredis.conf
+misc/*</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -6,8 +6,8 @@ VERSION 1.1 TODO
 * Add all the missing symbols for the static functions into the table. Crete a Tcl script to check this. This backtrace on segfault is indeed *very* useful.
 * Use strcoll() to compare objects in sorted sets, like it already happens for SORT.
 * LMOVE, as discussed in the Redis group.
-* EXPIRE and EXPIREAT tests.
-* Write docs for the &quot;STORE&quot; operaiton of SORT.
+* EXPIRE, EXPIREAT, ZSCORE tests.
+* Write docs for the &quot;STORE&quot; operaiton of SORT, and GET &quot;#&quot; option.
 * Append only mode: testing and a command to rebuild the log from scratch.
 
 VERSION 1.2 TODO</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -2331,7 +2331,7 @@ static int rdbSaveDoubleValue(FILE *fp, double val) {
         len = 1;
         buf[0] = (val &lt; 0) ? 255 : 254;
     } else {
-        snprintf((char*)buf+1,sizeof(buf)-1,&quot;%.16g&quot;,val);
+        snprintf((char*)buf+1,sizeof(buf)-1,&quot;%.17g&quot;,val);
         buf[0] = strlen((char*)buf);
         len = buf[0]+1;
     }
@@ -4307,7 +4307,7 @@ static void zscoreCommand(redisClient *c) {
                 char buf[128];
                 double *score = dictGetEntryVal(de);
 
-                snprintf(buf,sizeof(buf),&quot;%.16g&quot;,*score);
+                snprintf(buf,sizeof(buf),&quot;%.17g&quot;,*score);
                 addReplySds(c,sdscatprintf(sdsempty(),&quot;$%d\r\n%s\r\n&quot;,
                     strlen(buf),buf));
             }</diff>
      <filename>redis.c</filename>
    </modified>
    <modified>
      <diff>@@ -789,8 +789,21 @@ proc main {server port} {
     } {{x y z} {y x z}}
 
     test {ZSCORE} {
-        list [$r zscore ztmp x] [$r zscore ztmp y] [$r zscore ztmp z]
-    } {10 1 30}
+        set aux {}
+        set err {}
+        for {set i 0} {$i &lt; 1000} {incr i} {
+            set score [expr rand()]
+            lappend aux $score
+            $r zadd zscoretest $score $i
+        }
+        for {set i 0} {$i &lt; 1000} {incr i} {
+            if {[$r zscore zscoretest $i] != [lindex $aux $i]} {
+                set err &quot;Expected score was [lindex $aux $i] but got [$r zscore zscoretest $i] for element $i&quot;
+                break
+            }
+        }
+        set _ $err
+    } {}
 
     test {ZRANGE and ZREVRANGE} {
         list [$r zrange ztmp 0 -1] [$r zrevrange ztmp 0 -1]</diff>
      <filename>test-redis.tcl</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9155ea9c710f9ba481ac2c65a6a354a90eac8442</id>
    </parent>
  </parents>
  <author>
    <name>antirez</name>
    <email>antirez@gmail.com</email>
  </author>
  <url>http://github.com/antirez/redis/commit/eaa256ad256e385f6f448df6c162ff14f4d2956b</url>
  <id>eaa256ad256e385f6f448df6c162ff14f4d2956b</id>
  <committed-date>2009-11-03T05:36:38-08:00</committed-date>
  <authored-date>2009-11-03T05:36:38-08:00</authored-date>
  <message>ZSets double to string serialization fixed</message>
  <tree>85ada116fe1287acc662fac9eb3ed5947a209e1b</tree>
  <committer>
    <name>antirez</name>
    <email>antirez@gmail.com</email>
  </committer>
</commit>
