[rygel] core: Removed unneeded conversions to double



commit 9fcdcf5ef9131873bb10d87b68140451293fad9f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Mar 23 03:00:55 2010 +0200

    core: Removed unneeded conversions to double

 src/rygel/rygel-http-byte-seek.vala |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/rygel/rygel-http-byte-seek.vala b/src/rygel/rygel-http-byte-seek.vala
index de16c82..1e80b9e 100644
--- a/src/rygel/rygel-http-byte-seek.vala
+++ b/src/rygel/rygel-http-byte-seek.vala
@@ -86,13 +86,11 @@ internal class Rygel.HTTPByteSeek : Rygel.HTTPSeek {
     public override void add_response_headers () {
         // Content-Range: bytes START_BYTE-STOP_BYTE/TOTAL_LENGTH
         var range = "bytes ";
-        double start = (double) this.start;
-        double stop = (double) this.stop;
 
         this.msg.response_headers.append ("Accept-Ranges", "bytes");
 
-        range += start.to_string () + "-" +
-                 stop.to_string () + "/" +
+        range += this.start.to_string () + "-" +
+                 this.stop.to_string () + "/" +
                  this.length.to_string ();
         this.msg.response_headers.append ("Content-Range", range);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]