]> code.delx.au - pulseaudio/commitdiff
C99 requires explicit marking of integer literals' size.
authorPierre Ossman <ossman@cendio.se>
Tue, 18 Apr 2006 12:46:03 +0000 (12:46 +0000)
committerPierre Ossman <ossman@cendio.se>
Tue, 18 Apr 2006 12:46:03 +0000 (12:46 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@736 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/modules/rtp/module-rtp-recv.c
src/modules/rtp/sdp.c

index 525a881940a66195611683935a230de31fd9d253..a714e1625222c4d72e43c7cd176737260b3da8b4 100644 (file)
@@ -172,7 +172,7 @@ static void rtp_event_cb(pa_mainloop_api *m, pa_io_event *e, int fd, pa_io_event
 
     /* Check wheter there was a timestamp overflow */
     k = (int64_t) s->rtp_context.timestamp - (int64_t) s->offset;
-    j = (int64_t) 0x100000000 - (int64_t) s->offset + (int64_t) s->rtp_context.timestamp;
+    j = (int64_t) 0x100000000LL - (int64_t) s->offset + (int64_t) s->rtp_context.timestamp;
 
     if ((k < 0 ? -k : k) < (j < 0 ? -j : j))
         delta = k;
index 9dca15baf39cad96b1d55db7eea3baea8ea8742c..84bcd83b004366b256f436ad88cb521a43eeb30d 100644 (file)
@@ -55,7 +55,7 @@ char *pa_sdp_build(int af, const void *src, const void *dst, const char *name, u
         if (!(u = getenv("USERNAME")))
             u = "-";
     
-    ntp = time(NULL) + 2208988800;
+    ntp = time(NULL) + 2208988800U;
 
     a = inet_ntop(af, src, buf_src, sizeof(buf_src));
     assert(a);