summaryrefslogtreecommitdiffstats
path: root/gst/matroska/ebml-read.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-04-09 13:52:03 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-04-09 13:52:03 +0000
commitbcbc2b2b98b134efcd2644aad5b0379cde54803e (patch)
tree5ab6409fd9a5fe0b48552749bb92347458e516ad /gst/matroska/ebml-read.c
parent687ccc01c7675d11707d035e12ac0735a1dd892b (diff)
gst/matroska/ebml-read.c: Can't just replace 1LL with 1L here just because MSVC doesn't support it, as it might lead ...
Original commit message from CVS: * gst/matroska/ebml-read.c: (gst_ebml_read_sint): Can't just replace 1LL with 1L here just because MSVC doesn't support it, as it might lead to incorrect results when doing the bitshifting here. Using GLib's G_GUINT64_CONSTANT() macro to force a 64-bit constant in a way that all compilers are happy with.
Diffstat (limited to 'gst/matroska/ebml-read.c')
-rw-r--r--gst/matroska/ebml-read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/matroska/ebml-read.c b/gst/matroska/ebml-read.c
index 24f0f3f6..10c35123 100644
--- a/gst/matroska/ebml-read.c
+++ b/gst/matroska/ebml-read.c
@@ -507,7 +507,7 @@ gst_ebml_read_sint (GstEbmlRead * ebml, guint32 * id, gint64 * num)
/* make signed */
if (negative) {
- *num = *num - (1L << ((8 * size) - 1));
+ *num = *num - (G_GUINT64_CONSTANT (1) << ((8 * size) - 1));
}
gst_buffer_unref (buf);