Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Remove useless cast
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 17 Jul 2015 07:35:51 +0000 (09:35 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 17 Jul 2015 07:35:51 +0000 (09:35 +0200)
src/mc/mc_process.cpp

index 6e61f2a..1a799ae 100644 (file)
@@ -116,7 +116,7 @@ static ssize_t pread_whole(int fd, void *buf, size_t count, std::uint64_t offset
   char* buffer = (char*) buf;
   ssize_t real_count = count;
   while (count) {
-    ssize_t res = pread(fd, buffer, count, (off_t)(std::int64_t) offset);
+    ssize_t res = pread(fd, buffer, count, (std::int64_t) offset);
     if (res > 0) {
       count  -= res;
       buffer += res;