[xiph-commits] r12773 - trunk/xiph-qt/OggImport/src

arek at svn.xiph.org arek at svn.xiph.org
Sat Mar 17 15:36:04 PDT 2007


Author: arek
Date: 2007-03-17 15:36:02 -0700 (Sat, 17 Mar 2007)
New Revision: 12773

Modified:
   trunk/xiph-qt/OggImport/src/OggImport.c
Log:
Fixed initialization of 64-bit-type variables.

Modified: trunk/xiph-qt/OggImport/src/OggImport.c
===================================================================
--- trunk/xiph-qt/OggImport/src/OggImport.c	2007-03-17 21:27:24 UTC (rev 12772)
+++ trunk/xiph-qt/OggImport/src/OggImport.c	2007-03-17 22:36:02 UTC (rev 12773)
@@ -236,7 +236,7 @@
                globals->dataCanDoScheduleData, globals->dataCanDoGetFileSize64);
 
     if (globals->usingIdle && globals->dataCanDoAsyncRead) {
-        wide read_time = {0, 10};
+        wide read_time = SInt64ToWide(S64Set(10));
         TimeValue idle_delay = 80;
 
         if (globals->idleTimeBase == NULL) {
@@ -1340,7 +1340,7 @@
 
     dbg_printf("---> XQTGetFileSize() called\n");
     if (globals->dataCanDoGetFileSize64) {
-        wide size = {0, -1};
+        wide size = SInt64ToWide(S64Set(-1));
         err = DataHGetFileSize64(globals->dataReader, &size);
         size64 = WideToSInt64(size);
         dbg_printf("---- :: size: %ld%ld, err: %ld (%lx)\n", size.hi, size.lo, (long)err, (long)err);



More information about the commits mailing list