From 86e0cd4a92e39fb9f4016833e7ff87b6139f4a53 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Tue, 10 Dec 2024 15:35:32 +0100 Subject: [PATCH] Make information paramater 32 bit --- cpp/base/primary_device.cpp | 4 ++-- cpp/base/primary_device.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/base/primary_device.cpp b/cpp/base/primary_device.cpp index d917976c..84ca1c58 100644 --- a/cpp/base/primary_device.cpp +++ b/cpp/base/primary_device.cpp @@ -109,9 +109,9 @@ void PrimaryDevice::SetIli() ili = true; } -void PrimaryDevice::SetInformation(int64_t value) +void PrimaryDevice::SetInformation(int32_t value) { - information = static_cast(value); + information = value; valid = true; } diff --git a/cpp/base/primary_device.h b/cpp/base/primary_device.h index 13af63b0..ab964fcb 100644 --- a/cpp/base/primary_device.h +++ b/cpp/base/primary_device.h @@ -132,7 +132,7 @@ class PrimaryDevice : public Device void SetFilemark(); void SetEom(ascq); void SetIli(); - void SetInformation(int64_t); + void SetInformation(int32_t); void StatusPhase() const; void DataInPhase(int) const;