[Box Backup-commit] COMMIT r992 - box/trunk/lib/server

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Thu Oct 12 23:14:43 BST 2006


Author: chris
Date: 2006-10-12 23:14:42 +0100 (Thu, 12 Oct 2006)
New Revision: 992

Modified:
   box/trunk/lib/server/makeprotocol.pl.in
Log:
 * 64-bit format fixes (Win32)


Modified: box/trunk/lib/server/makeprotocol.pl.in
===================================================================
--- box/trunk/lib/server/makeprotocol.pl.in	2006-10-12 22:14:16 UTC (rev 991)
+++ box/trunk/lib/server/makeprotocol.pl.in	2006-10-12 22:14:42 UTC (rev 992)
@@ -912,7 +912,6 @@
 close H;
 close CPP;
 
-
 sub obj_is_type
 {
 	my ($c,$ty) = @_;
@@ -981,8 +980,15 @@
 		{
 			# need to translate it
 			my ($format,$arg) = @{$log_display_types{$ty}};
+			$arg =~ s/VAR/m$nm/g;
+
+			if ($format eq "0x%llx" and $target_windows)
+			{
+				$format = "0x%I64x";
+				$arg = "(uint64_t)$arg";
+			}
+
 			push @str,$format;
-			$arg =~ s/VAR/m$nm/g;
 			push @arg,$arg;
 		}
 		else




More information about the Boxbackup-commit mailing list