Skip to content

Commit

Permalink
Merge pull request #3295 from BsAtHome/fix_rtai-conv-components
Browse files Browse the repository at this point in the history
Fix incompatibility between uspace and rtai build
  • Loading branch information
andypugh authored Jan 23, 2025
2 parents 6071a81 + a63684d commit edd42df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/hal/components/conv.comp.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license "GPL";
author "Jeff Epler";

;;
#include <stdint.h>
#include <rtapi_stdint.h>
FUNCTION(_) {
@TYPI@ val = in;
@CC@ if(clamp) {
Expand Down
12 changes: 6 additions & 6 deletions src/hal/components/mkconv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ utype() {
maxval() {
case "$1" in
"bit") echo "1" ;;
"s32") echo "INT32_MAX" ;;
"u32") echo "UINT32_MAX" ;;
"s64") echo "INT64_MAX" ;;
"u64") echo "UINT64_MAX" ;;
"s32") echo "RTAPI_INT32_MAX" ;;
"u32") echo "RTAPI_UINT32_MAX" ;;
"s64") echo "RTAPI_INT64_MAX" ;;
"u64") echo "RTAPI_UINT64_MAX" ;;
"float") echo "Never_Used" ;;
*) echo "This_Will_Generate_An_Error" ;;
esac
Expand All @@ -36,9 +36,9 @@ maxval() {
minval() {
case "$1" in
"bit") echo "0" ;;
"s32") echo "INT32_MIN" ;;
"s32") echo "RTAPI_INT32_MIN" ;;
"u32") echo "0" ;;
"s64") echo "INT64_MIN" ;;
"s64") echo "RTAPI_INT64_MIN" ;;
"u64") echo "0" ;;
"float") echo "Never_Used" ;;
*) echo "This_Will_Generate_An_Error" ;;
Expand Down

0 comments on commit edd42df

Please sign in to comment.