Skip to content

Commit

Permalink
Small fix for signal property formatting in Console View.
Browse files Browse the repository at this point in the history
  • Loading branch information
malloch committed Feb 20, 2024
1 parent 95c4dbf commit 217faa7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,16 @@ function distance_squared(x1, y1, x2, y2) {
function type_name(initial) {
switch (initial) {
case 'i':
case 'INT32':
return "int";
case 'f':
case 'FLOAT':
return "float";
case 'd':
case 'DOUBLE':
return "double";
default:
console.log("unexpected type: ", initial);
return "?";
}
}
2 changes: 1 addition & 1 deletion js/views/ConsoleView.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class ConsoleView extends View {
let t = sigCount > 0 ? "├─ " : "└─ ";
let s = ' [[;'+color+';] '+t+sig.name+']';
s += ' ('+(sig['direction']=='output'?'out, ':'in, ');
s += sig['type']+sig['length']+')';
s += sig['type']+'['+sig['length']+'])';
echo(s);
if (showDetail) {
s = sigCount > 0 ? ' [[;'+color+';]|] ' : ' ';
Expand Down

0 comments on commit 217faa7

Please sign in to comment.