AnyScalar minor

This commit is contained in:
Michael Davidsaver
2017-09-13 12:26:11 -05:00
parent 7de37e57bc
commit 294adcf03a

View File

@ -152,9 +152,9 @@ public:
void swap(AnyScalar& o) {
typedef std::string string;
switch((unsigned)_stype) {
switch((int)_stype) {
case -1:
switch((unsigned)o._stype) {
switch((int)o._stype) {
case -1:
// nil <-> nil
break;
@ -171,7 +171,7 @@ public:
}
break;
case epics::pvData::pvString:
switch((unsigned)o._stype) {
switch((int)o._stype) {
case -1:
// string <-> nil
new (o._wrap.blob) std::string();
@ -198,7 +198,7 @@ public:
}
break;
default:
switch((unsigned)o._stype) {
switch((int)o._stype) {
case -1:
// non-string <-> nil
memcpy(o._wrap.blob, _wrap.blob, sizeof(_largest_blob));