Fix gcc 4.6 warnings
[babeltrace.git] / formats / ctf-text / types / integer.c
index 30209d6be6c66fbcad295273c947b2d14bfdeefe..46803f640c3376ed662883a1a4876ae5a052e3d5 100644 (file)
@@ -3,7 +3,9 @@
  *
  * Integers read/write functions.
  *
- * Copyright 2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
+ *
+ * Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -95,8 +97,7 @@ int ctf_text_integer_write(struct stream_pos *ppos, struct definition *definitio
                else
                        v = (uint64_t) integer_definition->value._signed;
 
-               fprintf(pos->fp, "0%" PRIo64,
-                       integer_definition->value._unsigned);
+               fprintf(pos->fp, "0%" PRIo64, v);
                break;
        }
        case 16:
@@ -108,8 +109,7 @@ int ctf_text_integer_write(struct stream_pos *ppos, struct definition *definitio
                else
                        v = (uint64_t) integer_definition->value._signed;
 
-               fprintf(pos->fp, "0x%" PRIX64,
-                       integer_definition->value._unsigned);
+               fprintf(pos->fp, "0x%" PRIX64, v);
                break;
        }
        default:
This page took 0.023595 seconds and 4 git commands to generate.