|
|
|
@ -586,7 +586,6 @@ MmsValue*
|
|
|
|
|
MmsValue_newIntegerFromInt8(int8_t integer)
|
|
|
|
|
{
|
|
|
|
|
MmsValue* self = (MmsValue*) GLOBAL_CALLOC(1, sizeof(MmsValue));
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
self->type = MMS_INTEGER;
|
|
|
|
|
self->value.integer = BerInteger_createFromInt32((int32_t) integer);
|
|
|
|
@ -598,7 +597,6 @@ MmsValue*
|
|
|
|
|
MmsValue_newIntegerFromInt16(int16_t integer)
|
|
|
|
|
{
|
|
|
|
|
MmsValue* self = (MmsValue*) GLOBAL_CALLOC(1, sizeof(MmsValue));
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
self->type = MMS_INTEGER;
|
|
|
|
|
self->value.integer = BerInteger_createFromInt32((int32_t) integer);
|
|
|
|
@ -832,7 +830,6 @@ MmsValue*
|
|
|
|
|
MmsValue_newUnsignedFromUint32(uint32_t integer)
|
|
|
|
|
{
|
|
|
|
|
MmsValue* self = (MmsValue*) GLOBAL_CALLOC(1, sizeof(MmsValue));
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
if (self == NULL)
|
|
|
|
|
return NULL;
|
|
|
|
@ -847,7 +844,6 @@ MmsValue*
|
|
|
|
|
MmsValue_newIntegerFromInt64(int64_t integer)
|
|
|
|
|
{
|
|
|
|
|
MmsValue* self = (MmsValue*) GLOBAL_CALLOC(1, sizeof(MmsValue));
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
if (self == NULL)
|
|
|
|
|
return NULL;
|
|
|
|
@ -913,8 +909,6 @@ MmsValue_toFloat(const MmsValue* self)
|
|
|
|
|
return val;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
printf("MmsValue_toFloat: conversion error. Wrong type!\n");
|
|
|
|
|
|
|
|
|
|
return 0.f;
|
|
|
|
|
}
|
|
|
|
|