mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[ion] Fix tools
Change-Id: I97b3770993adfd1b98b2eee24f9d3005842d8093
This commit is contained in:
@@ -11,7 +11,7 @@ void writeEventsToFile(std::ofstream & file, int numberOfEvents, std::mt19937 &
|
||||
while (i > 0) {
|
||||
int prEventId = distribution(rng);
|
||||
Ion::Events::Event e(prEventId);
|
||||
if (e.isValid() && e != Ion::Events::Termination) {
|
||||
if (e.isDefined() && e != Ion::Events::Termination) {
|
||||
i--;
|
||||
file << (unsigned char)(prEventId);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ int main(int argc, char * argv[]) {
|
||||
unsigned char c = 0;
|
||||
while (std::cin >> c) {
|
||||
Ion::Events::Event event(c);
|
||||
if (event.isValid()) {
|
||||
if (event.isDefined()) {
|
||||
if (event.name() == nullptr) {
|
||||
std::cerr << "*** UNNAMED(" << (int)c << ") ***" << std::endl;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user