Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[cosmetic] udf25: fix "unary minus operator applied to unsigned type,…

… result still unsigned" warning
  • Loading branch information...
commit 119da7cee485d8381d357ac8fdb79026b7ab7f71 1 parent 46de682
@Montellese Montellese authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xbmc/filesystem/udf25.cpp
View
2  xbmc/filesystem/udf25.cpp
@@ -422,7 +422,7 @@ static int file_read(CFile* fp, void *buffer, int blocks, int flags)
/* Nothing more to read. Return all of the whole blocks, if any.
* Adjust the file position back to the previous block boundary. */
size_t bytes = (size_t)blocks * DVD_VIDEO_LB_LEN - len;
- off_t over_read = -(bytes % DVD_VIDEO_LB_LEN);
+ off_t over_read = -(off_t)(bytes % DVD_VIDEO_LB_LEN);
/*off_t pos =*/ fp->Seek(over_read, SEEK_CUR);
/* should have pos % 2048 == 0 */
return (int) (bytes / DVD_VIDEO_LB_LEN);
Please sign in to comment.
Something went wrong with that request. Please try again.