Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug #149: Problem with big hex numbers in windows #208

Merged
merged 3 commits into from
Apr 14, 2024

Conversation

Joe7M
Copy link
Contributor

@Joe7M Joe7M commented Apr 2, 2024

Hi Chris,

Commit 1:
I fixed bug #149 problem with big hex numbers in windows. The problem is, that Linux 64 bit and Windows 64 bit have different length for long (linux -> 64 bit, windows -> 32 bit). I changed the length to var_int_t. See: https://www.ibm.com/docs/en/ibm-mq/9.1?topic=platforms-standard-data-types-unix-linux-windows

Commit 2:
I added the new SB function TRANSPOSE. It returns the transpose of a Matrix (or vector).

Best regards, Joerg


var_num_t *m = (var_num_t *)malloc(((rows) * (cols)) * sizeof(var_num_t));

for(int32_t x = 0; x < cols; x++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a super-nit pik. could u please put a space after for ie for (. same for the if( line below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem. Space added.

Copy link
Contributor

@chrisws chrisws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks

Copy link
Contributor

@chrisws chrisws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to merge

@chrisws chrisws merged commit d59a376 into smallbasic:master Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants