summaryrefslogtreecommitdiff
path: root/lib/server
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-08-31 22:57:36 +0000
committerChris Wilson <chris+github@qwirx.com>2006-08-31 22:57:36 +0000
commitc038702ec1cf0e0bb4225356593bacbef3647c28 (patch)
treebdfafb01494a1448d9d74a18543ee25768ed7967 /lib/server
parenteaed0b5d59d44b6e2027d8b449b9f9bba773df79 (diff)
(refs #3)
64-bit format fixes (Win32)
Diffstat (limited to 'lib/server')
-rwxr-xr-xlib/server/makeprotocol.pl.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/server/makeprotocol.pl.in b/lib/server/makeprotocol.pl.in
index 3dce6118..b5b9dd19 100755
--- a/lib/server/makeprotocol.pl.in
+++ b/lib/server/makeprotocol.pl.in
@@ -912,7 +912,6 @@ __E
close H;
close CPP;
-
sub obj_is_type
{
my ($c,$ty) = @_;
@@ -981,8 +980,15 @@ sub make_log_strings
{
# need to translate it
my ($format,$arg) = @{$log_display_types{$ty}};
- push @str,$format;
$arg =~ s/VAR/m$nm/g;
+
+ if ($format eq "0x%llx" and $target_windows)
+ {
+ $format = "0x%I64x";
+ $arg = "(uint64_t)$arg";
+ }
+
+ push @str,$format;
push @arg,$arg;
}
else