summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkumpf <kumpf>2005-08-06 00:24:39 +0000
committerkumpf <kumpf>2005-08-06 00:24:39 +0000
commita553a103af97b85a74c57d9f4ce0865ee303d816 (patch)
tree55f5089d16d0bfa2892646f5085c7b12da185776 /src
parent6270a39afb6c19e5174d6c9077b22534fa301783 (diff)
downloadtog-pegasus-a553a103af97b85a74c57d9f4ce0865ee303d816.zip
tog-pegasus-a553a103af97b85a74c57d9f4ce0865ee303d816.tar.gz
tog-pegasus-a553a103af97b85a74c57d9f4ce0865ee303d816.tar.xz
BUG#: 4013
TITLE: CMPI crash attempting to return signed value when unsigned value is requested. DESCRIPTION: Correct the CMPI_Value implementation to access the unsigned integer value rather than the signed integer value when an unsigned integer value is requested.
Diffstat (limited to 'src')
-rw-r--r--src/Pegasus/ProviderManager2/CMPI/CMPI_Value.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Pegasus/ProviderManager2/CMPI/CMPI_Value.cpp b/src/Pegasus/ProviderManager2/CMPI/CMPI_Value.cpp
index 5695e47..dcad617 100644
--- a/src/Pegasus/ProviderManager2/CMPI/CMPI_Value.cpp
+++ b/src/Pegasus/ProviderManager2/CMPI/CMPI_Value.cpp
@@ -156,10 +156,10 @@ CIMValue value2CIMValue(const CMPIValue* data, const CMPIType type, CMPIrc *rc)
else if ((type & (CMPI_UINT|CMPI_SINT))==CMPI_UINT) {
switch (type) {
- case CMPI_uint32: v.set((Uint32)data->sint32); break;
- case CMPI_uint16: v.set((Uint16)data->sint16); break;
- case CMPI_uint8: v.set((Uint8)data->sint8); break;
- case CMPI_uint64: v.set((Uint64)data->sint64); break;
+ case CMPI_uint32: v.set((Uint32)data->uint32); break;
+ case CMPI_uint16: v.set((Uint16)data->uint16); break;
+ case CMPI_uint8: v.set((Uint8)data->uint8); break;
+ case CMPI_uint64: v.set((Uint64)data->uint64); break;
default: ;
}
}