*
* 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
v = *(const int16_t *) ctf_get_pos_addr(pos);
integer_definition->value._signed =
- rbo ? GUINT16_SWAP_LE_BE(v) : v;
+ rbo ? (int16_t) GUINT16_SWAP_LE_BE(v) : v;
break;
}
case 32:
v = *(const int32_t *) ctf_get_pos_addr(pos);
integer_definition->value._signed =
- rbo ? GUINT32_SWAP_LE_BE(v) : v;
+ rbo ? (int32_t) GUINT32_SWAP_LE_BE(v) : v;
break;
}
case 64:
v = *(const int64_t *) ctf_get_pos_addr(pos);
integer_definition->value._signed =
- rbo ? GUINT64_SWAP_LE_BE(v) : v;
+ rbo ? (int64_t) GUINT64_SWAP_LE_BE(v) : v;
break;
}
default:
break;
case 16:
*(int16_t *) ctf_get_pos_addr(pos) = rbo ?
- GUINT16_SWAP_LE_BE((int16_t) v) :
+ (int16_t) GUINT16_SWAP_LE_BE((int16_t) v) :
(int16_t) v;
break;
case 32:
*(int32_t *) ctf_get_pos_addr(pos) = rbo ?
- GUINT32_SWAP_LE_BE((int32_t) v) :
+ (int32_t) GUINT32_SWAP_LE_BE((int32_t) v) :
(int32_t) v;
break;
case 64: